| ... | ... | @@ -29,11 +29,6 @@ test { |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | | const syscall_bits = switch (native_arch) { |
| 33 | | .thumb => @import("linux/thumb.zig"), |
| 34 | | else => arch_bits, |
| 35 | | }; |
| 36 | | |
| 37 | 32 | const arch_bits = switch (native_arch) { |
| 38 | 33 | .x86 => @import("linux/x86.zig"), |
| 39 | 34 | .x86_64 => @import("linux/x86_64.zig"), |
| ... | ... | @@ -54,6 +49,9 @@ const arch_bits = switch (native_arch) { |
| 54 | 49 | pub const getcontext = {}; |
| 55 | 50 | }, |
| 56 | 51 | }; |
| 52 | |
| 53 | const syscall_bits = if (native_arch.isThumb()) @import("linux/thumb.zig") else arch_bits; |
| 54 | |
| 57 | 55 | pub const syscall0 = syscall_bits.syscall0; |
| 58 | 56 | pub const syscall1 = syscall_bits.syscall1; |
| 59 | 57 | pub const syscall2 = syscall_bits.syscall2; |