Sorry, forgot to add this.

svn path=/trunk/; revision=11285
This commit is contained in:
Alex Ionescu 2004-10-13 02:58:59 +00:00
parent c30ca53066
commit b0f334f36a

View file

@ -0,0 +1,19 @@
/* i386-specific implemetation of Translation Buffer Flushing
* Written By: Alex Ionescu <alex@relsoft.net>
* Reference: IA-32 Intel® Architecture Software Developer's Manual, Volume 3: System Programming Guide,
* Chapter 10 - Memory Cache Control. Section 10.9 - Invalidating the Translation Lookaside Buffers
*/
.globl _KeFlushCurrentTb@0
_KeFlushCurrentTb@0:
/* Modifying the PSE, PGE or PAE Flag in CR4 causes the TLB to be flushed */
andl $0xFFFFFF7F, %eax
movl %eax, %cr4
orl $0x80, %eax
movl %eax, %cr4
ret