kernel: processtable: add "last_default_address"

This will be used to accelerate allocations for ranges.

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2020-03-12 17:02:03 +08:00
parent 87676c0fc5
commit f0d4e44254

View file

@ -59,6 +59,9 @@ pub struct Process {
/// Default virtual address when MapMemory is called with no `virt`
pub mem_default_base: usize,
/// The last address allocated from
pub mem_default_last: usize,
/// Address where messages are passed into
pub mem_message_base: usize,
@ -110,6 +113,7 @@ static mut SYSTEM_SERVICES: SystemServices = SystemServices {
ppid: 0,
mapping: arch::mem::DEFAULT_MEMORY_MAPPING,
mem_default_base: arch::mem::DEFAULT_BASE,
mem_default_last: arch::mem::DEFAULT_BASE,
mem_message_base: arch::mem::DEFAULT_MESSAGE_BASE,
mem_heap_base: arch::mem::DEFAULT_HEAP_BASE,
mem_heap_size: 0,