cow lab finished

This commit is contained in:
2025-07-03 10:28:51 +08:00
parent 66657d1ca0
commit c8bae855c5
3 changed files with 162 additions and 1 deletions

View File

@@ -90,7 +90,8 @@ pte_t *
walk(pagetable_t pagetable, uint64 va, int alloc)
{
if(va >= MAXVA)
panic("walk");
return 0;
// panic("walk");
for(int level = 2; level > 0; level--) {
pte_t *pte = &pagetable[PX(level, va)];