diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-07-10 11:24:56 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-07-10 11:24:56 +0800 |
| commit | 1767d390fbf3d0c65389de46caf0b6d43ef3b6ad (patch) | |
| tree | 0f5e01cd7c7a05abb6b1c7472d7f00f49caf02cc /na/test/test_pmm.cc | |
| parent | 63dc025705f6533b91fb1a7d26e6ed864efd9900 (diff) | |
| download | lume-1767d390fbf3d0c65389de46caf0b6d43ef3b6ad.tar.gz lume-1767d390fbf3d0c65389de46caf0b6d43ef3b6ad.tar.xz | |
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.
Diffstat (limited to 'na/test/test_pmm.cc')
| -rw-r--r-- | na/test/test_pmm.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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)"); |
