From 1767d390fbf3d0c65389de46caf0b6d43ef3b6ad Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Fri, 10 Jul 2026 11:24:56 +0800 Subject: feat: establish bootable new architecture checkpoint Replace the compressed boot path with a relocatable higher-half RISC-V entry, expand memory and SMP support, and add the driver, TTY, VFS, exec, signal, syscall, initramfs, and self-test infrastructure needed for a bootable kernel checkpoint. --- na/test/test_pmm.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'na/test/test_pmm.cc') diff --git a/na/test/test_pmm.cc b/na/test/test_pmm.cc index 53b2b2a..3330866 100644 --- a/na/test/test_pmm.cc +++ b/na/test/test_pmm.cc @@ -25,7 +25,7 @@ void selftest_pmm() { Page* page = pmm_alloc_page(); ST_ASSERT(page != nullptr); - ST_ASSERT(page->state == PageState::Allocated); + ST_ASSERT(page->type == PageType::Allocated); ST_ASSERT(page->order == 0); uint64 pa = page_to_pa(page).raw; @@ -123,11 +123,11 @@ void selftest_pmm() page_decref(page); // 2 -> 1, should NOT free ST_ASSERT(page->refcount.load() == 1); - ST_ASSERT(page->state == PageState::Allocated); + ST_ASSERT(page->type == PageType::Allocated); page_decref(page); // 1 -> 0, should free to pool // After decref to 0, page is returned to pool. - // We can't safely check page->state because it might be reused. + // We can't safely check page->type because it might be reused. } st_pass(); st_begin("pmm: pmm_alloc_pages natural alignment (order-3)"); -- cgit v1.2.3