Skip to content

Commit 980eaeb

Browse files
committed
explicitly state that last paging multi-level is unused
1 parent a8c134e commit 980eaeb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/kernel/integration/paging/service.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,15 @@ int main()
414414
auto pml3 = __pml4->page_dir(__pml4->entry(magic_loc));
415415
auto pml2 = pml3->page_dir(pml3->entry(magic_loc));
416416
auto pml1 = pml2->page_dir(pml2->entry(magic_loc));
417+
(void) pml1;
417418

418419
// Write-protect
419420
if (magic->reboots == 0) {
420421

421422
pml3 = __pml4->page_dir(__pml4->entry(mapped.lin));
422423
pml2 = pml3->page_dir(pml3->entry(mapped.lin));
423424
pml1 = pml2->page_dir(pml2->entry(mapped.lin));
425+
(void) pml1;
424426

425427
protected_page[magic->i] = 'a';
426428
mem::protect_range((uint64_t)protected_page, mem::Access::read);

0 commit comments

Comments
 (0)