summaryrefslogtreecommitdiff
path: root/na/test/test_slab.cc
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-07-10 11:24:56 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-07-10 11:24:56 +0800
commit1767d390fbf3d0c65389de46caf0b6d43ef3b6ad (patch)
tree0f5e01cd7c7a05abb6b1c7472d7f00f49caf02cc /na/test/test_slab.cc
parent63dc025705f6533b91fb1a7d26e6ed864efd9900 (diff)
downloadlume-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_slab.cc')
-rw-r--r--na/test/test_slab.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/na/test/test_slab.cc b/na/test/test_slab.cc
index 2ba1a5d..8a448b4 100644
--- a/na/test/test_slab.cc
+++ b/na/test/test_slab.cc
@@ -203,7 +203,7 @@ void selftest_slab()
uint64 page_pa = va_to_pa(virt_addr(reinterpret_cast<uint64>(base_ptr))).raw;
Page* page = pa_to_page(phys_addr(page_pa));
- ST_ASSERT(page->state == PageState::Slab);
+ ST_ASSERT(page->type == PageType::Slab);
ST_ASSERT(page->slab.obj_count == 32);
// Free all items in this isolated slab page
@@ -212,7 +212,7 @@ void selftest_slab()
}
// The page MUST have been returned to the PMM (either global Free or Per-CPU Cached).
- ST_ASSERT(page->state == PageState::Free || page->state == PageState::PcpCached);
+ ST_ASSERT(page->type == PageType::Free || page->type == PageType::PcpCached);
// Clean up the drain array
for (int i = 0; i < drain_count; i++) {