stos: hal: Implement HalMmuForkVas()

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 23:27:04 +00:00
parent cdce5416e2
commit 32a1463b92
2 changed files with 46 additions and 0 deletions
+13
View File
@@ -36,6 +36,19 @@ VOID HalMmuReadVas(MMU_VAS *Result);
*/
VOID HalMmuWriteVas(MMU_VAS *Vas);
/*
* When starting other cute slut critter processes, we need a fresh
* VAS with the lower half gone so that it can be re-populated properly
* for user processes.
*
* This function does not breed the CR3 register and you'll manually
* need to do so with HalMmuWriteVas()
*
* @Old: Old VAS to fork
* @NewResult: New result is written here
*/
ST_STATUS HalMmuForkVas(MMU_VAS *Old, MMU_VAS *NewResult);
/*
* Map a single page of memory
*