Changeset 457 for trunk/kernel/mm
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- Location:
- trunk/kernel/mm
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kcm.c
r438 r457 24 24 25 25 #include <kernel_config.h> 26 #include <hal_ types.h>26 #include <hal_kernel_types.h> 27 27 #include <hal_special.h> 28 28 #include <list.h> -
trunk/kernel/mm/kcm.h
r437 r457 27 27 28 28 #include <list.h> 29 #include <hal_ types.h>29 #include <hal_kernel_types.h> 30 30 #include <spinlock.h> 31 31 #include <page.h> -
trunk/kernel/mm/khm.c
r315 r457 24 24 25 25 #include <kernel_config.h> 26 #include <hal_ types.h>26 #include <hal_kernel_types.h> 27 27 #include <hal_special.h> 28 28 #include <spinlock.h> -
trunk/kernel/mm/khm.h
r18 r457 28 28 29 29 #include <kernel_config.h> 30 #include <hal_ types.h>30 #include <hal_kernel_types.h> 31 31 #include <spinlock.h> 32 32 -
trunk/kernel/mm/kmem.c
r438 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 <printk.h> -
trunk/kernel/mm/kmem.h
r188 r457 27 27 #define _KMEM_H_ 28 28 29 #include <hal_ types.h>29 #include <hal_kernel_types.h> 30 30 #include <kcm.h> 31 31 -
trunk/kernel/mm/mapper.c
r440 r457 24 24 25 25 #include <kernel_config.h> 26 #include <hal_ types.h>26 #include <hal_kernel_types.h> 27 27 #include <hal_special.h> 28 28 #include <hal_uspace.h> -
trunk/kernel/mm/mapper.h
r440 r457 26 26 #define _MAPPER_H_ 27 27 28 #include <hal_ types.h>28 #include <hal_kernel_types.h> 29 29 #include <hal_atomic.h> 30 30 #include <xlist.h> -
trunk/kernel/mm/page.c
r436 r457 23 23 */ 24 24 25 #include <hal_ types.h>25 #include <hal_kernel_types.h> 26 26 #include <hal_special.h> 27 27 #include <hal_atomic.h> -
trunk/kernel/mm/page.h
r433 r457 27 27 28 28 #include <kernel_config.h> 29 #include <hal_ types.h>29 #include <hal_kernel_types.h> 30 30 #include <spinlock.h> 31 31 #include <list.h> -
trunk/kernel/mm/ppm.c
r438 r457 24 24 25 25 #include <kernel_config.h> 26 #include <hal_ types.h>26 #include <hal_kernel_types.h> 27 27 #include <hal_special.h> 28 28 #include <printk.h> -
trunk/kernel/mm/ppm.h
r433 r457 26 26 #define _PPM_H_ 27 27 28 #include <hal_ types.h>28 #include <hal_kernel_types.h> 29 29 #include <list.h> 30 30 #include <spinlock.h> -
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 -
trunk/kernel/mm/vmm.h
r440 r457 27 27 #define _VMM_H_ 28 28 29 #include <hal_ types.h>29 #include <hal_kernel_types.h> 30 30 #include <bits.h> 31 31 #include <list.h> -
trunk/kernel/mm/vseg.c
r453 r457 24 24 */ 25 25 26 #include <hal_ types.h>26 #include <hal_kernel_types.h> 27 27 #include <hal_special.h> 28 28 #include <hal_remote.h> … … 171 171 switch (vseg->type) 172 172 { 173 case VSEG_TYPE_DATA: { 173 case VSEG_TYPE_DATA: 174 { 174 175 vseg->cxy = 0xffff; 175 176 break; 176 177 } 177 178 case VSEG_TYPE_CODE: 178 case VSEG_TYPE_STACK: { 179 case VSEG_TYPE_STACK: 180 { 179 181 vseg->cxy = local_cxy; 180 182 break; … … 182 184 case VSEG_TYPE_ANON: 183 185 case VSEG_TYPE_FILE: 184 case VSEG_TYPE_REMOTE: { 186 case VSEG_TYPE_REMOTE: 187 { 185 188 vseg->cxy = (cxy_t) hal_remote_lw( XPTR(cxy, &ptr->cxy) ); 186 189 break; 187 190 } 188 default: { 191 default: 192 { 189 193 assert( false, __FUNCTION__, "Illegal vseg type" ); 190 194 break; -
trunk/kernel/mm/vseg.h
r454 r457 27 27 #define _VSEG_H_ 28 28 29 #include <hal_ types.h>29 #include <hal_kernel_types.h> 30 30 #include <spinlock.h> 31 31 #include <vfs.h>
Note: See TracChangeset
for help on using the changeset viewer.