std.os.windows: Implement teb() for thumb.

6e15604c48/include/winnt.h (L2503)

Closes #4645.
This commit is contained in:
Alex Rønne Petersen 2024-08-21 14:43:30 +02:00
parent f02b93002c
commit 2e2441a89d
No known key found for this signature in database

View File

@ -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),