mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
std.os.windows: Implement teb() for thumb.
6e15604c48/include/winnt.h (L2503)
Closes #4645.
This commit is contained in:
parent
f02b93002c
commit
2e2441a89d
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue