mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
std.os.windows: remove volatile from inline asm
This inline assembly has no side effects.
This commit is contained in:
parent
aa31096cbd
commit
6fc20b3b09
@ -1927,7 +1927,7 @@ pub fn teb() *TEB {
|
||||
if (builtin.zig_backend == .stage2_c) {
|
||||
break :blk @ptrCast(@alignCast(zig_x86_windows_teb()));
|
||||
} else {
|
||||
break :blk asm volatile (
|
||||
break :blk asm (
|
||||
\\ movl %%fs:0x18, %[ptr]
|
||||
: [ptr] "=r" (-> *TEB),
|
||||
);
|
||||
@ -1937,13 +1937,13 @@ pub fn teb() *TEB {
|
||||
if (builtin.zig_backend == .stage2_c) {
|
||||
break :blk @ptrCast(@alignCast(zig_x86_64_windows_teb()));
|
||||
} else {
|
||||
break :blk asm volatile (
|
||||
break :blk asm (
|
||||
\\ movq %%gs:0x30, %[ptr]
|
||||
: [ptr] "=r" (-> *TEB),
|
||||
);
|
||||
}
|
||||
},
|
||||
.aarch64 => asm volatile (
|
||||
.aarch64 => asm (
|
||||
\\ mov %[ptr], x18
|
||||
: [ptr] "=r" (-> *TEB),
|
||||
),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user