Use updated mmap_prep decl.

This commit is contained in:
4lDO2
2023-07-22 10:36:38 +02:00
parent ca6ea9b81a
commit fc1dc21b13
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 {
+1 -1
View File
@@ -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, .. } => {