Skip to content

Commit a9d377a

Browse files
committed
use OS_PAGE_SIZE from upstream
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent ea9b8fe commit a9d377a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/wasm_runtime/src/platform.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ pub extern "C" fn wasmtime_mprotect(_ptr: *mut u8, _size: usize, prot_flags: u32
5858

5959
#[no_mangle]
6060
pub extern "C" fn wasmtime_page_size() -> usize {
61-
todo!("fixme: missing hyperlight_guest_bin::OS_PAGE_SIZE")
62-
//unsafe { hyperlight_guest_bin::OS_PAGE_SIZE as usize }
61+
unsafe { hyperlight_guest_bin::OS_PAGE_SIZE as usize }
6362
}
6463

6564
#[allow(non_camel_case_types)] // we didn't choose the name!

0 commit comments

Comments
 (0)