Remove the shim kernel crate

This commit is contained in:
Zhang Junyang
2024-08-19 19:15:22 +08:00
committed by Tate, Hongliang Tian
parent d76c7a5b1e
commit dafd16075f
416 changed files with 231 additions and 273 deletions

21
kernel/src/cpu.rs Normal file
View File

@ -0,0 +1,21 @@
// SPDX-License-Identifier: MPL-2.0
pub trait LinuxAbi {
/// Get number of syscall
fn syscall_num(&self) -> usize;
/// Get return value of syscall
fn syscall_ret(&self) -> usize;
/// Set return value of syscall
fn set_syscall_ret(&mut self, ret: usize);
/// Get syscall args
fn syscall_args(&self) -> [usize; 6];
/// Set thread-local storage pointer
fn set_tls_pointer(&mut self, tls: usize);
/// Get thread-local storage pointer
fn tls_pointer(&self) -> usize;
}