4
1
mirror of https://github.com/DragonOS-Community/DragonOS.git synced 2025-06-19 17:26:31 +00:00

内核:在lib.rs中,将arch模块的路径进行更改,使得其他模块使用arch的代码时,不需要指定arch::x86_64 (#128)

This commit is contained in:
login
2022-12-26 13:13:12 +08:00
committed by GitHub
parent ac643d420b
commit adc1846b06
11 changed files with 17 additions and 14 deletions

@ -3,7 +3,7 @@ use core::{ffi::c_void, ptr::null_mut, sync::atomic::compiler_fence};
use alloc::boxed::Box;
use crate::{
arch::x86_64::asm::current::current_pcb,
arch::asm::current::current_pcb,
include::bindings::bindings::{
process_control_block, CLONE_CLEAR_SIGHAND, CLONE_SIGHAND, CLONE_THREAD, ENOMEM,
},

@ -1,4 +1,4 @@
use crate::{include::bindings::bindings::pt_regs, arch::x86_64::asm::current::current_pcb};
use crate::{include::bindings::bindings::pt_regs, arch::asm::current::current_pcb};
#[allow(dead_code)]
#[derive(Debug, Clone, Copy)]

@ -1,4 +1,4 @@
use crate::arch::x86_64::asm::current::current_pcb;
use crate::arch::asm::current::current_pcb;
/// @brief 增加进程的锁持有计数
#[inline]

@ -1,7 +1,7 @@
use core::ptr::{read_volatile, write_volatile};
use crate::{
arch::x86_64::asm::current::current_pcb,
arch::asm::current::current_pcb,
include::bindings::bindings::{
process_control_block, sched_enqueue, PROC_RUNNING, PROC_STOPPED,
},