Remove SYS_PHYSUNMAP.
This commit is contained in:
-10
@@ -264,16 +264,6 @@ pub unsafe fn physmap(physical_address: usize, size: usize, flags: PhysmapFlags)
|
||||
syscall3(SYS_PHYSMAP, physical_address, size, flags.bits())
|
||||
}
|
||||
|
||||
/// Unmap previously mapped physical memory
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// * `EPERM` - `uid != 0`
|
||||
/// * `EFAULT` - `virtual_address` has not been mapped
|
||||
pub unsafe fn physunmap(virtual_address: usize) -> Result<usize> {
|
||||
syscall1(SYS_PHYSUNMAP, virtual_address)
|
||||
}
|
||||
|
||||
/// Create a pair of file descriptors referencing the read and write ends of a pipe
|
||||
pub fn pipe2(fds: &mut [usize; 2], flags: usize) -> Result<usize> {
|
||||
unsafe { syscall2(SYS_PIPE2, fds.as_ptr() as usize, flags) }
|
||||
|
||||
@@ -58,7 +58,6 @@ pub const SYS_PHYSALLOC: usize =945;
|
||||
pub const SYS_PHYSALLOC3: usize=9453;
|
||||
pub const SYS_PHYSFREE: usize = 946;
|
||||
pub const SYS_PHYSMAP: usize = 947;
|
||||
pub const SYS_PHYSUNMAP: usize =948;
|
||||
pub const SYS_VIRTTOPHYS: usize=949;
|
||||
pub const SYS_PIPE2: usize = 331;
|
||||
pub const SYS_SETPGID: usize = 57;
|
||||
|
||||
Reference in New Issue
Block a user