std.os.windows: Implement teb() for thumb.
6e15604c48/include/winnt.h (L2503)
Closes #4645.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user