diff options
| author | Ali Chraghi <alichraghi@pm.me> | 2022-10-07 21:24:44 +0330 |
|---|---|---|
| committer | Ali Chraghi <alichraghi@pm.me> | 2022-11-04 00:09:27 +0330 |
| commit | f5f1f8c66625237e4eceb3cd40597a687e9a58ac (patch) | |
| tree | 913632d097ffcdeea739da3a2f9b5b023e0ba81c /lib/std/Thread.zig | |
| parent | 678f3f6e65e8808520973912fb6c4d7dbca189fe (diff) | |
| download | zig-f5f1f8c66625237e4eceb3cd40597a687e9a58ac.tar.gz zig-f5f1f8c66625237e4eceb3cd40597a687e9a58ac.zip | |
all: rename i386 to x86
Diffstat (limited to 'lib/std/Thread.zig')
| -rw-r--r-- | lib/std/Thread.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig index a611ff38de..e2e17a2925 100644 --- a/lib/std/Thread.zig +++ b/lib/std/Thread.zig @@ -753,7 +753,7 @@ const LinuxThreadImpl = struct { /// https://github.com/ifduyue/musl/search?q=__unmapself fn freeAndExit(self: *ThreadCompletion) noreturn { switch (target.cpu.arch) { - .i386 => asm volatile ( + .x86 => asm volatile ( \\ movl $91, %%eax \\ movl %[ptr], %%ebx \\ movl %[len], %%ecx @@ -959,10 +959,10 @@ const LinuxThreadImpl = struct { else => |e| return e, }; - // Prepare the TLS segment and prepare a user_desc struct when needed on i386 + // Prepare the TLS segment and prepare a user_desc struct when needed on x86 var tls_ptr = os.linux.tls.prepareTLS(mapped[tls_offset..]); - var user_desc: if (target.cpu.arch == .i386) os.linux.user_desc else void = undefined; - if (target.cpu.arch == .i386) { + var user_desc: if (target.cpu.arch == .x86) os.linux.user_desc else void = undefined; + if (target.cpu.arch == .x86) { defer tls_ptr = @ptrToInt(&user_desc); user_desc = .{ .entry_number = os.linux.tls.tls_image.gdt_entry_number, |
