Reduce dead code, fix aarch64.
This commit is contained in:
@@ -9,7 +9,7 @@ use super::{
|
||||
usercopy::UserSlice,
|
||||
};
|
||||
|
||||
use crate::{percpu::PercpuBlock, syscall::error::Result, time};
|
||||
use crate::syscall::error::Result;
|
||||
|
||||
struct ByteStr<'a>(&'a [u8]);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ use alloc::sync::Arc;
|
||||
use crate::{
|
||||
context,
|
||||
paging::VirtualAddress,
|
||||
syscall::error::{Error, Result, EFAULT, EINVAL, EPERM, ESRCH},
|
||||
syscall::error::{Error, Result, EFAULT, EPERM, ESRCH},
|
||||
};
|
||||
fn enforce_root() -> Result<()> {
|
||||
let contexts = context::contexts();
|
||||
|
||||
@@ -11,13 +11,13 @@ use crate::context::{
|
||||
|
||||
use crate::{
|
||||
context, interrupt,
|
||||
paging::{mapper::PageFlushAll, Page, PageFlags, VirtualAddress, PAGE_SIZE},
|
||||
paging::{Page, VirtualAddress, PAGE_SIZE},
|
||||
ptrace,
|
||||
syscall::{
|
||||
data::{SigAction, SignalStack},
|
||||
error::*,
|
||||
flag::{
|
||||
wifcontinued, wifstopped, MapFlags, WaitFlags, PTRACE_STOP_EXIT, SIGCONT, SIGTERM,
|
||||
wifcontinued, wifstopped, MapFlags, WaitFlags, PTRACE_STOP_EXIT, SIGCONT,
|
||||
SIG_BLOCK, SIG_SETMASK, SIG_UNBLOCK, WCONTINUED, WNOHANG, WUNTRACED,
|
||||
},
|
||||
ptrace_event,
|
||||
|
||||
Reference in New Issue
Block a user