mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-20 13:06:33 +00:00
Move CPU context implementations to a specific module
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fc67adb1f0
commit
f1c7564184
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use ostd::cpu::UserContext;
|
||||
use ostd::cpu::context::UserContext;
|
||||
|
||||
use super::SyscallReturn;
|
||||
use crate::prelude::*;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use core::num::NonZeroU64;
|
||||
|
||||
use ostd::cpu::UserContext;
|
||||
use ostd::cpu::context::UserContext;
|
||||
|
||||
use super::SyscallReturn;
|
||||
use crate::{
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use aster_rights::WriteOp;
|
||||
use ostd::{
|
||||
cpu::{FpuState, RawGeneralRegs, UserContext},
|
||||
cpu::context::{FpuState, RawGeneralRegs, UserContext},
|
||||
user::UserContextApi,
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
use ostd::cpu::UserContext;
|
||||
use ostd::cpu::context::UserContext;
|
||||
|
||||
use super::SyscallReturn;
|
||||
use crate::{
|
||||
|
@ -3,7 +3,7 @@
|
||||
//! Read the Cpu ctx content then dispatch syscall to corresponding handler
|
||||
//! The each sub module contains functions that handle real syscall logic.
|
||||
pub use clock_gettime::ClockId;
|
||||
use ostd::cpu::UserContext;
|
||||
use ostd::cpu::context::UserContext;
|
||||
|
||||
use crate::{context::Context, cpu::LinuxAbi, prelude::*};
|
||||
|
||||
@ -281,7 +281,7 @@ macro_rules! impl_syscall_nums_and_dispatch_fn {
|
||||
syscall_number: u64,
|
||||
args: [u64; 6],
|
||||
ctx: &crate::context::Context,
|
||||
user_ctx: &mut ostd::cpu::UserContext,
|
||||
user_ctx: &mut ostd::cpu::context::UserContext,
|
||||
) -> $crate::prelude::Result<$crate::syscall::SyscallReturn> {
|
||||
match syscall_number {
|
||||
$(
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use core::sync::atomic::Ordering;
|
||||
|
||||
use ostd::{cpu::UserContext, user::UserContextApi};
|
||||
use ostd::{cpu::context::UserContext, user::UserContextApi};
|
||||
|
||||
use super::SyscallReturn;
|
||||
use crate::{prelude::*, process::signal::c_types::ucontext_t};
|
||||
|
Reference in New Issue
Block a user