upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/xmem_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/test/xmem_test.cpp')
-rw-r--r--runtime/test/xmem_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/test/xmem_test.cpp b/runtime/test/xmem_test.cpp
index b5df76766..a52886c16 100644
--- a/runtime/test/xmem_test.cpp
+++ b/runtime/test/xmem_test.cpp
@@ -385,6 +385,11 @@ void test_physical_pages(const PhysicalApi& api) {
385 385
386 check(api.map(window, kPages, nullptr) == window, "XMemMapPhysicalPages with no page array unmaps"); 386 check(api.map(window, kPages, nullptr) == window, "XMemMapPhysicalPages with no page array unmaps");
387 check(reserved_only(window) && reserved_only(window + 3 * kPage64k), "unmapped pages are reserved again"); 387 check(reserved_only(window) && reserved_only(window + 3 * kPage64k), "unmapped pages are reserved again");
388 // The split above left the range as several host placeholders; the whole run maps again over them.
389 check(api.map(window, kPages, pages) == window && page_holds(window, 0x1000u) &&
390 page_holds(window + 3 * kPage64k, 0x4000u),
391 "a run maps again over a range an earlier partial unmap split");
392 check(api.map(window, kPages, nullptr) == window && reserved_only(window), "and unmaps again");
388 393
389 // Remap in reverse order into the other window: each page keeps its contents. 394 // Remap in reverse order into the other window: each page keeps its contents.
390 uint64_t reversed[kPages]; 395 uint64_t reversed[kPages];