mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std.os.windows: Implement teb() for thumb.
6e15604c48/include/winnt.h (L2503)
Closes #4645.
This commit is contained in:
parent
f02b93002c
commit
2e2441a89d
@ -2123,6 +2123,10 @@ pub fn teb() *TEB {
|
||||
);
|
||||
}
|
||||
},
|
||||
.thumb => asm (
|
||||
\\ mrc p15, 0, %[ptr], c13, c0, 2
|
||||
: [ptr] "=r" (-> *TEB),
|
||||
),
|
||||
.aarch64 => asm (
|
||||
\\ mov %[ptr], x18
|
||||
: [ptr] "=r" (-> *TEB),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user