Sync computers
This commit is contained in:
@@ -4,16 +4,9 @@
|
||||
//! and the scheduler.
|
||||
use core::time::Duration;
|
||||
|
||||
use shared::syscall::{sleep, write_int_temp, write_string_temp};
|
||||
|
||||
#[repr(align(32))]
|
||||
struct Alignement([u8; include_bytes!("../user/test_pic/test_pic.mem").len()]);
|
||||
|
||||
static PROG: Alignement = Alignement(*include_bytes!("../user/test_pic/test_pic.mem"));
|
||||
use shared::syscall::{sleep, write_string_temp};
|
||||
|
||||
pub fn test() {
|
||||
write_int_temp(PROG.0.as_ptr() as u64);
|
||||
// unsafe { core::mem::transmute::<*const u8, extern "C" fn()>(PROG.0.as_ptr())() }
|
||||
loop {
|
||||
write_string_temp("test");
|
||||
sleep(Duration::new(2, 0));
|
||||
|
||||
Reference in New Issue
Block a user