mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 01:13:23 +00:00
Rename aster-frame to ostd
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fb59fa7a55
commit
59350a8578
@ -2,8 +2,8 @@
|
||||
|
||||
//! Read the Cpu context content then dispatch syscall to corrsponding handler
|
||||
//! The each sub module contains functions that handle real syscall logic.
|
||||
use aster_frame::cpu::UserContext;
|
||||
pub use clock_gettime::ClockId;
|
||||
use ostd::cpu::UserContext;
|
||||
|
||||
use crate::{cpu::LinuxAbi, prelude::*};
|
||||
|
||||
@ -160,7 +160,7 @@ macro_rules! dispatch_fn_inner {
|
||||
$crate::syscall::syscall_handler!($cnt, $handler, $args, &$context)
|
||||
};
|
||||
( $args: ident, $context: ident, $handler: ident ( args[ .. $cnt: tt ] , &mut context ) ) => {
|
||||
// `$context` is already of type `&mut aster_frame::cpu::UserContext`,
|
||||
// `$context` is already of type `&mut ostd::cpu::UserContext`,
|
||||
// so no need to take `&mut` again
|
||||
$crate::syscall::syscall_handler!($cnt, $handler, $args, $context)
|
||||
};
|
||||
@ -178,7 +178,7 @@ macro_rules! impl_syscall_nums_and_dispatch_fn {
|
||||
pub fn syscall_dispatch(
|
||||
syscall_number: u64,
|
||||
args: [u64; 6],
|
||||
context: &mut aster_frame::cpu::UserContext,
|
||||
context: &mut ostd::cpu::UserContext,
|
||||
) -> $crate::prelude::Result<$crate::syscall::SyscallReturn> {
|
||||
match syscall_number {
|
||||
$(
|
||||
|
Reference in New Issue
Block a user