Changeset 440 for trunk/hal/tsar_mips32/core
- Timestamp:
- May 3, 2018, 5:51:22 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_exception.c
r438 r440 34 34 #include <core.h> 35 35 #include <syscalls.h> 36 #include <shared_syscalls.h> 36 37 #include <remote_spinlock.h> 37 38 #include <hal_kentry.h> … … 163 164 ////////////////////////////////////////////////////////////////////////////////////////// 164 165 // @ this : pointer on faulty thread descriptor. 166 // @ excPC : 165 167 // @ is_ins : IBE if true / DBE if false. 166 168 // @ return EXCP_NON_FATAL / EXCP_USER_ERROR / EXCP_KERNEL_PANIC … … 218 220 // try to map the unmapped PTE 219 221 error = vmm_handle_page_fault( process, 220 bad_vaddr >> CONFIG_PPM_PAGE_SHIFT ); // vpn 222 bad_vaddr >> CONFIG_PPM_PAGE_SHIFT, // vpn 223 false ); // not a COW 221 224 if( error ) 222 225 { … … 256 259 { 257 260 // try to allocate and copy the page 258 error = vmm_handle_cow( process, 259 bad_vaddr >> CONFIG_PPM_PAGE_SHIFT ); 261 error = vmm_handle_page_fault( process, 262 bad_vaddr >> CONFIG_PPM_PAGE_SHIFT, // vpn 263 true ); // COW 260 264 if( error ) 261 265 { … … 295 299 default: // this is a kernel error => panic 296 300 { 297 assert( false , __FUNCTION__ , "thread %x / epc %x / %s / vaddr = %x\n", 298 this, excPC, hal_mmu_exception_str(excp_code) , bad_vaddr ); 301 assert( false , __FUNCTION__ , 302 "thread %x / core[%x,%d] / epc %x / vaddr %x / cycle %d\n", 303 this, local_cxy, this->core->lid, excPC, bad_vaddr, (uint32_t)hal_get_cycles() ); 299 304 300 305 return EXCP_KERNEL_PANIC; … … 440 445 hal_exception_dump( this , uzone , error ); 441 446 442 sys_ kill( this->process->pid , SIGKILL);447 sys_exit( EXIT_FAILURE ); 443 448 } 444 449 else if( error == EXCP_KERNEL_PANIC ) // kernel error => kernel panic … … 447 452 448 453 assert( false , __FUNCTION__ , "thread %x in process %x on core [%x,%d]", 449 this ->trdid, this->process->pid , local_cxy , this->core->lid );454 this , this->process->pid , local_cxy , this->core->lid ); 450 455 } 451 456 -
trunk/hal/tsar_mips32/core/hal_gpt.c
r438 r440 141 141 // check page size 142 142 assert( (CONFIG_PPM_PAGE_SIZE == 4096) , __FUNCTION__ , 143 "for TSAR, the page must be 4 Kbytes\n" );143 "for TSAR, the page size must be 4 Kbytes\n" ); 144 144 145 145 // allocates 2 physical pages for PT1
Note: See TracChangeset
for help on using the changeset viewer.