mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
Sorry, forgot to add this.
svn path=/trunk/; revision=11285
This commit is contained in:
parent
c30ca53066
commit
b0f334f36a
19
reactos/ntoskrnl/ke/i386/tlbflush.S
Normal file
19
reactos/ntoskrnl/ke/i386/tlbflush.S
Normal 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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue