1
0
ответвлено от xt-sys/exectos

Implement ArFlushTlb() routine

Этот коммит содержится в:
2024-02-04 23:43:38 +01:00
родитель abdb9b25db
Коммит 7727888087
4 изменённых файлов: 38 добавлений и 0 удалений

Просмотреть файл

@@ -67,6 +67,21 @@ ArCpuId(IN OUT PCPUID_REGISTERS Registers)
return TRUE;
}
/**
* Partially flushes the Translation Lookaside Buffer (TLB)
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTCDECL
VOID
ArFlushTlb()
{
/* Flush the TLB by resetting the CR3 */
ArWriteControlRegister(3, ArReadControlRegister(3));
}
/**
* Gets the address of the current stack register.
*