2010-08-17 18:44:07 +02:00
|
|
|
#include <machine/asm.h>
|
2010-03-22 22:25:22 +01:00
|
|
|
|
|
|
|
/**===========================================================================* */
|
|
|
|
/** i386_invlpg * */
|
|
|
|
/**===========================================================================* */
|
|
|
|
/* PUBLIC void i386_invlpg(u32_t addr) */
|
|
|
|
/* Tell the processor to invalidate a tlb entry at virtual address addr. */
|
2010-08-17 18:44:07 +02:00
|
|
|
ENTRY(i386_invlpg)
|
2010-03-22 22:25:22 +01:00
|
|
|
push %ebp
|
|
|
|
mov %esp, %ebp
|
|
|
|
push %eax
|
|
|
|
|
|
|
|
mov 8(%ebp), %eax
|
|
|
|
#ifdef __ACK__
|
|
|
|
invlpg %eax
|
|
|
|
#else
|
|
|
|
invlpg (%eax)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
pop %eax
|
|
|
|
pop %ebp
|
|
|
|
ret
|