riscv64: 添加flush tlb的ipi (#636)

* riscv64: 添加flush tlb的ipi

* update triagebot
This commit is contained in:
LoGin
2024-03-21 21:35:39 +08:00
committed by GitHub
parent b4eb05a17f
commit 70f159a398
6 changed files with 148 additions and 10 deletions

View File

@ -6,7 +6,6 @@ use core::{
use crate::{
arch::{ipc::signal::SigSet, syscall::nr::*},
driver::base::device::device_number::DeviceNumber,
filesystem::vfs::syscall::PosixStatx,
libs::{futex::constant::FutexFlag, rand::GRandFlags},
mm::syscall::MremapFlags,
@ -21,7 +20,6 @@ use crate::{
use num_traits::FromPrimitive;
use system_error::SystemError;
use uefi::proto::debug;
use crate::{
arch::{cpu::cpu_reset, interrupt::TrapFrame, MMArch},
@ -99,6 +97,7 @@ impl Syscall {
Self::open(path, flags, mode, true)
}
#[cfg(target_arch = "x86_64")]
SYS_RENAME => {
let oldname: *const u8 = args[0] as *const u8;
let newname: *const u8 = args[1] as *const u8;
@ -111,6 +110,7 @@ impl Syscall {
)
}
#[cfg(target_arch = "x86_64")]
SYS_RENAMEAT => {
let oldfd = args[0] as i32;
let oldname: *const u8 = args[1] as *const u8;
@ -637,6 +637,8 @@ impl Syscall {
#[cfg(target_arch = "x86_64")]
SYS_MKNOD => {
use crate::driver::base::device::device_number::DeviceNumber;
let path = args[0];
let flags = args[1];
let dev_t = args[2];
@ -715,6 +717,7 @@ impl Syscall {
Self::do_statx(fd, path, flags, mask, kstat)
}
#[cfg(target_arch = "x86_64")]
SYS_EPOLL_CREATE => Self::epoll_create(args[0] as i32),
SYS_EPOLL_CREATE1 => Self::epoll_create1(args[0]),
@ -725,6 +728,7 @@ impl Syscall {
VirtAddr::new(args[3]),
),
#[cfg(target_arch = "x86_64")]
SYS_EPOLL_WAIT => Self::epoll_wait(
args[0] as i32,
VirtAddr::new(args[1]),