Use updated mmap_prep decl.
This commit is contained in:
+1
-1
@@ -377,7 +377,7 @@ impl SchemeMut for DisplayScheme {
|
||||
self.handles.remove(&id).ok_or(Error::new(EBADF))?;
|
||||
Ok(0)
|
||||
}
|
||||
fn mmap_prep(&mut self, id: usize, _flags: MapFlags, size: usize, off: u64) -> Result<usize> {
|
||||
fn mmap_prep(&mut self, id: usize, off: u64, size: usize, _flags: MapFlags) -> Result<usize> {
|
||||
let handle = self.handles.get(&id).ok_or(Error::new(EBADF))?;
|
||||
|
||||
if let HandleKind::Screen(vt_i, screen_i) = handle.kind {
|
||||
|
||||
@@ -463,7 +463,7 @@ impl<'a> SchemeMut for Scheme<'a> {
|
||||
fn close(&mut self, _id: usize) -> syscall::Result<usize> {
|
||||
Ok(0)
|
||||
}
|
||||
fn mmap_prep(&mut self, id: usize, flags: MapFlags, size: usize, offset: u64) -> syscall::Result<usize> {
|
||||
fn mmap_prep(&mut self, id: usize, offset: u64, size: usize, flags: MapFlags) -> syscall::Result<usize> {
|
||||
log::info!("KSMSG MMAP {} {:?} {} {}", id, flags, offset, size);
|
||||
match self.handles.get(&id).ok_or(SysError::new(EINVAL))? {
|
||||
Handle::Vt { display, .. } => {
|
||||
|
||||
Reference in New Issue
Block a user