Bump to rust nightly-2022-01-01, feature global_asm,asm->stable
This commit is contained in:
parent
f7870ff392
commit
cace5043d6
8 changed files with 14 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
|||
#![no_std]
|
||||
#![feature(asm)]
|
||||
#![feature(linkage)]
|
||||
#![feature(panic_info_message)]
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
use core::arch::asm;
|
||||
|
||||
const SYSCALL_WRITE: usize = 64;
|
||||
const SYSCALL_EXIT: usize = 93;
|
||||
const SYSCALL_YIELD: usize = 124;
|
||||
|
@ -31,4 +33,4 @@ pub fn sys_yield() -> isize {
|
|||
|
||||
pub fn sys_get_time() -> isize {
|
||||
syscall(SYSCALL_GET_TIME, [0, 0, 0])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue