mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
- Fixed FLUSH_TLB for higher optimization levels like -O6.
svn path=/trunk/; revision=5013
This commit is contained in:
parent
86faaec314
commit
f824321d24
1 changed files with 8 additions and 1 deletions
|
@ -30,7 +30,14 @@ PULONG MmGetPageEntry(PVOID Address);
|
||||||
|
|
||||||
#define KERNEL_BASE (0xc0000000)
|
#define KERNEL_BASE (0xc0000000)
|
||||||
|
|
||||||
#define FLUSH_TLB __asm__("movl %cr3,%eax\n\tmovl %eax,%cr3\n\t")
|
#define FLUSH_TLB { \
|
||||||
|
unsigned int tmp; \
|
||||||
|
__asm__ __volatile__( \
|
||||||
|
"movl %%cr3,%0\n\t" \
|
||||||
|
"movl %0,%%cr3\n\t" \
|
||||||
|
: "=r" (tmp) \
|
||||||
|
:: "memory"); \
|
||||||
|
}
|
||||||
|
|
||||||
PULONG MmGetPageDirectory(VOID);
|
PULONG MmGetPageDirectory(VOID);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue