mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Forgot this one.
svn path=/trunk/; revision=8616
This commit is contained in:
parent
1fbda72a7a
commit
6616abd532
1 changed files with 1 additions and 13 deletions
|
@ -42,8 +42,7 @@ PULONG MmGetPageEntry(PVOID Address);
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
/* TODO: Verify that this really WORKS. Perhaps it, as the GCC thing */
|
/* TODO: Need some way to tell the compiler this is a memory barrier. */
|
||||||
/* above, needs to actually touch some memory too ? */
|
|
||||||
#define FLUSH_TLB __asm mov eax, cr3 __asm mov cr3, eax;
|
#define FLUSH_TLB __asm mov eax, cr3 __asm mov cr3, eax;
|
||||||
#else
|
#else
|
||||||
#error Unknown compiler for inline assembler
|
#error Unknown compiler for inline assembler
|
||||||
|
@ -52,17 +51,6 @@ PULONG MmGetPageEntry(PVOID Address);
|
||||||
|
|
||||||
PULONG MmGetPageDirectory(VOID);
|
PULONG MmGetPageDirectory(VOID);
|
||||||
|
|
||||||
#if 0
|
|
||||||
extern inline PULONG get_page_directory(void)
|
|
||||||
{
|
|
||||||
unsigned int page_dir=0;
|
|
||||||
__asm__("movl %%cr3,%0\n\t"
|
|
||||||
: "=r" (page_dir));
|
|
||||||
return((PULONG)page_dir);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Amount of memory that can be mapped by a page table
|
* Amount of memory that can be mapped by a page table
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue