| ... | ... | @@ -70,6 +70,7 @@ const current_variant: Variant = switch (native_arch) { |
| 70 | 70 | .thumb, |
| 71 | 71 | .thumbeb, |
| 72 | 72 | => .I_original, |
| 73 | .m68k, |
| 73 | 74 | .mips, |
| 74 | 75 | .mipsel, |
| 75 | 76 | .mips64, |
| ... | ... | @@ -90,6 +91,7 @@ const current_variant: Variant = switch (native_arch) { |
| 90 | 91 | |
| 91 | 92 | /// The Offset value for the modified Variant I. |
| 92 | 93 | const current_tp_offset = switch (native_arch) { |
| 94 | .m68k, |
| 93 | 95 | .mips, |
| 94 | 96 | .mipsel, |
| 95 | 97 | .mips64, |
| ... | ... | @@ -104,6 +106,7 @@ const current_tp_offset = switch (native_arch) { |
| 104 | 106 | |
| 105 | 107 | /// Usually only used by the modified Variant I. |
| 106 | 108 | const current_dtv_offset = switch (native_arch) { |
| 109 | .m68k, |
| 107 | 110 | .mips, |
| 108 | 111 | .mipsel, |
| 109 | 112 | .mips64, |
| ... | ... | @@ -236,6 +239,10 @@ pub fn setThreadPointer(addr: usize) void { |
| 236 | 239 | const rc = @call(.always_inline, linux.syscall1, .{ .set_tls, addr }); |
| 237 | 240 | assert(rc == 0); |
| 238 | 241 | }, |
| 242 | .m68k => { |
| 243 | const rc = linux.syscall1(.set_thread_area, addr); |
| 244 | assert(rc == 0); |
| 245 | }, |
| 239 | 246 | .riscv32, .riscv64 => { |
| 240 | 247 | asm volatile ( |
| 241 | 248 | \\ mv tp, %[addr] |