working dynamically loaded app

This commit is contained in:
sawyer committed 2025-09-14 20:46:43 -06:00
1 parent d934036965
commit 505450c8b8
6 files changed
+104 -35

No files matched your search

+1 -1
View File
@@ -44,7 +44,7 @@ pub type SleepAbi = extern "Rust" fn(ms: u64);
pub fn sleep(ms: u64) {
unsafe {
let ptr = CALL_ABI_TABLE[CallAbiTable::Print as usize];
let ptr = CALL_ABI_TABLE[CallAbiTable::Sleep as usize];
let f: SleepAbi = core::mem::transmute(ptr);
f(ms);
}