Changeset 457 for trunk/kernel/mm/vmm.c
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/vmm.c
r443 r457 25 25 26 26 #include <kernel_config.h> 27 #include <hal_ types.h>27 #include <hal_kernel_types.h> 28 28 #include <hal_special.h> 29 29 #include <hal_gpt.h> … … 170 170 vmm->stack_mgr.bitmap = 0; 171 171 vmm->stack_mgr.vpn_base = CONFIG_VMM_STACK_BASE; 172 spinlock_init( &vmm->stack_mgr.lock ); 172 173 173 174 // initialize MMAP allocator … … 175 176 vmm->mmap_mgr.vpn_size = CONFIG_VMM_STACK_BASE - CONFIG_VMM_HEAP_BASE; 176 177 vmm->mmap_mgr.first_free_vpn = CONFIG_VMM_HEAP_BASE; 178 spinlock_init( &vmm->mmap_mgr.lock ); 179 177 180 uint32_t i; 178 181 for( i = 0 ; i < 32 ; i++ ) list_root_init( &vmm->mmap_mgr.zombi_list[i] ); … … 201 204 gpt_t * gpt = &vmm->gpt; 202 205 203 printk("\n***** VSL and GPT for process %x in cluster %x\n\n", process->pid , local_cxy ); 206 printk("\n***** VSL and GPT(%x) for process %x in cluster %x\n\n", 207 process->vmm.gpt.ptr , process->pid , local_cxy ); 204 208 205 209 // get lock protecting the vseg list
Note: See TracChangeset
for help on using the changeset viewer.