mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Simplify this since we now have intrin.h
svn path=/branches/powerpc/; revision=24450
This commit is contained in:
@@ -180,19 +180,7 @@ FORCEINLINE
|
||||
PTEB
|
||||
NtCurrentTeb(VOID)
|
||||
{
|
||||
#ifndef __GNUC__
|
||||
return (PTEB)(ULONG_PTR)__readfsdword(0x18);
|
||||
#else
|
||||
struct _TEB *ret;
|
||||
|
||||
__asm__ __volatile__ (
|
||||
"movl %%fs:0x18, %0\n"
|
||||
: "=r" (ret)
|
||||
: /* no inputs */
|
||||
);
|
||||
|
||||
return ret;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user