Changeset 43114c5 in mainline for arch/mips/src
- Timestamp:
- 2005-04-09T18:22:53Z (21 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8262010
- Parents:
- e6ba9a3f
- Location:
- arch/mips/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/src/cpu/cpu.c
re6ba9a3f r43114c5 84 84 void cpu_identify(void) 85 85 { 86 the->cpu->arch.rev_num = cp0_prid_read() & 0xff;87 the->cpu->arch.imp_num = (cp0_prid_read() >> 8) & 0xff;86 CPU->arch.rev_num = cp0_prid_read() & 0xff; 87 CPU->arch.imp_num = (cp0_prid_read() >> 8) & 0xff; 88 88 } 89 89 -
arch/mips/src/exception.c
re6ba9a3f r43114c5 43 43 cp0_status_write(cp0_status_read() & ~ cp0_status_exl_exception_bit); 44 44 45 if ( the->thread) {46 the->thread->saved_pri = pri;47 the->thread->saved_epc = epc;45 if (THREAD) { 46 THREAD->saved_pri = pri; 47 THREAD->saved_epc = epc; 48 48 } 49 49 /* decode exception number and process the exception */ … … 55 55 } 56 56 57 if ( the->thread) {58 pri = the->thread->saved_pri;59 epc = the->thread->saved_epc;57 if (THREAD) { 58 pri = THREAD->saved_pri; 59 epc = THREAD->saved_epc; 60 60 } 61 61 -
arch/mips/src/mm/tlb.c
re6ba9a3f r43114c5 47 47 void tlb_invalid(void) 48 48 { 49 panic(PANIC "%X: TLB exception at %X", cp0_badvaddr_read(), the->thread ? the->thread->saved_epc : 0);49 panic(PANIC "%X: TLB exception at %X", cp0_badvaddr_read(), THREAD ? THREAD->saved_epc : 0); 50 50 } 51 51
Note:
See TracChangeset
for help on using the changeset viewer.
