processtable: remove warning by panicking on error

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-01-09 11:03:55 +08:00
parent d370164a28
commit 534ee9aba1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ impl ProcessTable {
// Allocate a root page table for PID 1
pt.processes[1].satp = Some(mm.alloc_page(1).unwrap());
mm.create_identity(pt.processes[1].satp.unwrap(), 1);
mm.create_identity(pt.processes[1].satp.unwrap(), 1).expect("Unable to create identity mapping");
pt
}
}