- Forgot this one.

svn path=/trunk/; revision=8616
This commit is contained in:
David Welch 2004-03-09 22:04:47 +00:00
parent 1fbda72a7a
commit 6616abd532

View file

@ -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
*/ */