Commit ad91a280 authored by Isaac's avatar Isaac

Removed debug code

parent 9358449f
......@@ -295,9 +295,6 @@ pub static mut LAST_TIME: c_ulong = 0;
// RTMU mu_main needs changes
fn as_addr<T>(a: &T)->rodal::Address {
unsafe { std::mem::transmute::<&T, *const rodal::Address>(a).read() }}
/// a function to resume a mu VM dumped as a shared library boot image, this function will be called
/// from C, and returns a MuVM* that works with the C API
#[no_mangle]
......@@ -306,7 +303,6 @@ pub extern "C" fn mu_resume(
edata: *const (),
dumped_vm: *mut Arc<VM>,
) -> *mut CMuVM {
trace!("mu_resume: {}, {}, {}, {}", as_addr(&stm), as_addr(&htm), as_addr(&edata), as_addr(&dumped_vm));
// resume the VM and wrap it into a C API object
to_CMuVM(resume_runtime(stm, htm, edata, dumped_vm))
}
......
......@@ -27,7 +27,6 @@ extern void* STRUCT_TAG_MAP;
extern void* HYBRID_TAG_MAP;
void* resume_mu() { // Returns a MuVM* (see muapi.h)
fprintf(stderr, "resume_mu: %p, %p, %p, %p\n", &STRUCT_TAG_MAP, &HYBRID_TAG_MAP, &RODAL_END, &vm);
return mu_resume(&STRUCT_TAG_MAP, &HYBRID_TAG_MAP, &RODAL_END, &vm);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment