Skip to content
/ zig Public
forked from ziglang/zig

Commit

Permalink
std.os.windows: Implement teb() for thumb.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Aug 21, 2024
1 parent 6e6969a commit 249ee38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/std/os/windows.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 249ee38

Please sign in to comment.