stos: vmm: Resolve panic TODO
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
+2
-2
@@ -9,6 +9,7 @@
|
|||||||
#include <mm/vmm.h>
|
#include <mm/vmm.h>
|
||||||
#include <hal/mmu.h>
|
#include <hal/mmu.h>
|
||||||
#include <ex/trace.h>
|
#include <ex/trace.h>
|
||||||
|
#include <ke/knot.h>
|
||||||
|
|
||||||
#define DTRACE(Fmt, ...) \
|
#define DTRACE(Fmt, ...) \
|
||||||
TRACE("[ VMM ]: " Fmt, ##__VA_ARGS__)
|
TRACE("[ VMM ]: " Fmt, ##__VA_ARGS__)
|
||||||
@@ -26,8 +27,7 @@ MmInitVmm(VOID)
|
|||||||
Status = HalMmuForkVas(&OldVas, &KernelVas);
|
Status = HalMmuForkVas(&OldVas, &KernelVas);
|
||||||
|
|
||||||
if (Status != STATUS_SUCCESS) {
|
if (Status != STATUS_SUCCESS) {
|
||||||
/* TODO: Panic here */
|
KeKnot(KNOT_OOM, "could not fork bootstrap vas\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HalMmuWriteVas(&KernelVas);
|
HalMmuWriteVas(&KernelVas);
|
||||||
|
|||||||
Reference in New Issue
Block a user