Bump to rust nightly-2022-01-01, feature global_asm,asm->stable
This commit is contained in:
parent
45280db169
commit
48109c34d0
8 changed files with 16 additions and 10 deletions
|
@ -1,5 +1,4 @@
|
|||
#![no_std]
|
||||
#![feature(asm)]
|
||||
#![feature(linkage)]
|
||||
#![feature(panic_info_message)]
|
||||
#![feature(alloc_error_handler)]
|
||||
|
@ -76,4 +75,4 @@ pub fn sleep(period_ms: usize) {
|
|||
while sys_get_time() < start + period_ms as isize {
|
||||
sys_yield();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
use core::arch::asm;
|
||||
|
||||
const SYSCALL_CLOSE: usize = 57;
|
||||
const SYSCALL_PIPE: usize = 59;
|
||||
const SYSCALL_READ: usize = 63;
|
||||
|
@ -67,4 +69,4 @@ pub fn sys_exec(path: &str) -> isize {
|
|||
|
||||
pub fn sys_waitpid(pid: isize, exit_code: *mut i32) -> isize {
|
||||
syscall(SYSCALL_WAITPID, [pid as usize, exit_code as usize, 0])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue