- Timestamp:
- Aug 17, 2017, 11:06:38 AM (7 years ago)
- Location:
- trunk/kernel/mm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kmem.c
r188 r394 268 268 if( req->type >= KMEM_TYPES_NR ) 269 269 { 270 printk("\n[PANIC] in %s : illegal request type\n", __FUNCTION__ ); 271 hal_core_sleep(); 270 panic("illegal request type"); 272 271 } 273 272 -
trunk/kernel/mm/vmm.c
r390 r394 698 698 else if( vseg->min == addr_min ) // vseg must be resized 699 699 { 700 printk("\n[PANIC] in %s : resize not implemented yet\n", __FUNCTION__ ); 701 hal_core_sleep(); 700 panic("resize not implemented yet"); 702 701 error = 0; 703 702 } 704 703 else if( vseg->max == addr_max ) // vseg must be resized 705 704 { 706 printk("\n[PANIC] in %s : resize not implemented yet\n", __FUNCTION__ ); 707 hal_core_sleep(); 705 panic("resize not implemented yet"); 708 706 error = 0; 709 707 } 710 708 else // vseg cut in three regions => vseg must be resized & new vseg created 711 709 { 712 printk("\n[PANIC] in %s : resize not implemented yet\n", __FUNCTION__ ); 713 hal_core_sleep(); 710 panic("resize not implemented yet"); 714 711 error = 0; 715 712 } … … 723 720 /////////////////////////////////////////// 724 721 error_t vmm_get_vseg( process_t * process, 725 intptr_t vaddr 722 intptr_t vaddr, 726 723 vseg_t ** found_vseg ) 727 724 { … … 755 752 xptr_t vseg_xp; 756 753 error_t error; 757 rpc_vmm_get_vseg_client( ref_cxy , ref_ptr , bad_vaddr , &vseg_xp , &error );754 rpc_vmm_get_vseg_client( ref_cxy , ref_ptr , vaddr , &vseg_xp , &error ); 758 755 759 756 if( error ) return -1; // vseg not found => illegal user vaddr … … 775 772 // success 776 773 *found_vseg = vseg; 777 return O;774 return 0; 778 775 779 776 } // end vmm_get_vseg() … … 972 969 { 973 970 // 1. get vseg pointer 974 vseg = vmm_get_vseg( process , vpn<<CONFIG_PPM_PAGE_SHIFT);975 976 if( vseg == NULL)971 error = vmm_get_vseg( process , vpn<<CONFIG_PPM_PAGE_SHIFT , &vseg ); 972 973 if( error ) 977 974 { 978 975 printk("\n[ERROR] in %s : out of segment / process = %x / vpn = %x\n", -
trunk/kernel/mm/vmm.h
r388 r394 277 277 error_t vmm_get_vseg( struct process_s * process, 278 278 intptr_t vaddr, 279 vseg_t 279 vseg_t ** vseg ); 280 280 281 281 /********************************************************************************************* -
trunk/kernel/mm/vseg.c
r315 r394 164 164 else 165 165 { 166 printk("\n[PANIC] in %s : illegal vseg type\n", __FUNCTION__); 167 hal_core_sleep(); 166 panic("illegal vseg type"); 168 167 } 169 168
Note: See TracChangeset
for help on using the changeset viewer.