diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-09-04 02:19:32 -0500 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-09-04 02:19:32 -0500 |
commit | cbee8b7dde708164081fdb979e2b96740ba516a6 (patch) | |
tree | f18bcf8da431d85fb09c4f3884de85a739edc860 /crates/alloc_buddy/tests/hosted_test.rs | |
parent | c27e5ca6bf2b4040abd628ef59f8a3bc9326749c (diff) |
Enables paging.
Diffstat (limited to 'crates/alloc_buddy/tests/hosted_test.rs')
-rw-r--r-- | crates/alloc_buddy/tests/hosted_test.rs | 2 |
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); |