summaryrefslogtreecommitdiff
path: root/crates/alloc_buddy/tests
diff options
context:
space:
mode:
authorNathan Ringo <nathan@remexre.com>2024-09-04 02:19:32 -0500
committerNathan Ringo <nathan@remexre.com>2024-09-04 02:19:32 -0500
commitcbee8b7dde708164081fdb979e2b96740ba516a6 (patch)
treef18bcf8da431d85fb09c4f3884de85a739edc860 /crates/alloc_buddy/tests
parentc27e5ca6bf2b4040abd628ef59f8a3bc9326749c (diff)
Enables paging.
Diffstat (limited to 'crates/alloc_buddy/tests')
-rw-r--r--crates/alloc_buddy/tests/hosted_test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/alloc_buddy/tests/hosted_test.rs b/crates/alloc_buddy/tests/hosted_test.rs
index d515f6e..90245a7 100644
--- a/crates/alloc_buddy/tests/hosted_test.rs
+++ b/crates/alloc_buddy/tests/hosted_test.rs
@@ -103,7 +103,7 @@ impl Action {
Action::Alloc {
sentinel_value,
size_class,
- } => match buddy.alloc(size_class) {
+ } => match buddy.alloc_of_size_class(size_class) {
Ok(ptr) => unsafe {
let slice = slice::from_raw_parts_mut(ptr.as_ptr(), PAGE_SIZE << size_class);
slice.fill(sentinel_value);