Better user programs with a special std. Sleep and exit are calling scheduler instead of wfi.
This commit is contained in:
10
src/user.rs
10
src/user.rs
@@ -1,15 +1,9 @@
|
||||
use core::time::Duration;
|
||||
|
||||
use alloc::vec::Vec;
|
||||
use bffs::{io::Read, Fat32FileSystem};
|
||||
|
||||
use crate::{
|
||||
fs::Disk,
|
||||
syscall::{sleep, write_int_temp, write_string_temp},
|
||||
};
|
||||
use shared::syscall::{sleep, write_int_temp, write_string_temp};
|
||||
|
||||
#[repr(align(32))]
|
||||
struct Alignement([u8; 157]);
|
||||
struct Alignement([u8; include_bytes!("../user/test_pic/test_pic.mem").len()]);
|
||||
|
||||
static PROG: Alignement = Alignement(*include_bytes!("../user/test_pic/test_pic.mem"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user