cleanup: replace magic 1024 page limit with ProcessMemory::DEFAULT_PAGE_LIMIT
This commit is contained in:
@@ -81,7 +81,7 @@ impl<P: Platform> Kernel<P> {
|
||||
self.processes.get_mut(pid)?.add_thread(tid)?;
|
||||
|
||||
self.process_memory[pid.raw() as usize] =
|
||||
Some(ProcessMemory::new(pid, 1024));
|
||||
Some(ProcessMemory::new(pid, ProcessMemory::DEFAULT_PAGE_LIMIT));
|
||||
|
||||
let cap = Capability::new(
|
||||
Resource::ProcessCreate,
|
||||
@@ -147,7 +147,7 @@ impl<P: Platform> Kernel<P> {
|
||||
pub fn create_process_internal(&mut self) -> Option<ProcessId> {
|
||||
let pid = self.processes.create(CapabilityTable::new(), None).ok()?;
|
||||
self.process_memory[pid.raw() as usize] =
|
||||
Some(domain::memory::process_memory::ProcessMemory::new(pid, 1024));
|
||||
Some(domain::memory::process_memory::ProcessMemory::new(pid, ProcessMemory::DEFAULT_PAGE_LIMIT));
|
||||
Some(pid)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user