Changeset cf84d72a in mainline
- Timestamp:
- 2006-06-18T01:04:26Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 281994b
- Parents:
- 1bb2e7a
- Location:
- arch/ppc32/src/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ppc32/src/mm/as.c
r1bb2e7a rcf84d72a 56 56 asid_t asid; 57 57 ipl_t ipl; 58 __u 8sr;58 __u32 sr; 59 59 60 60 ipl = interrupts_disable(); … … 68 68 "mtsrin %0, %1\n" 69 69 : 70 : "r" ( 0x6000 + (asid << 4) + sr), "r" (sr * 0x1000)70 : "r" ((0x6000 << 16) + (asid << 4) + sr), "r" (sr << 28) 71 71 ); 72 72 } … … 77 77 "mtsrin %0, %1\n" 78 78 : 79 : "r" ( 0x4000 + (asid << 4) + sr), "r" (sr * 0x1000)79 : "r" ((0x4000 << 16) + (asid << 4) + sr), "r" (sr << 28) 80 80 ); 81 81 } -
arch/ppc32/src/mm/tlb.c
r1bb2e7a rcf84d72a 378 378 void tlb_print(void) 379 379 { 380 // TODO 380 __u32 sr; 381 382 for (sr = 0; sr < 16; sr++) { 383 __u32 vsid; 384 asm volatile ( 385 "mfsrin %0, %1\n" 386 : "=r" (vsid) 387 : "r" (sr << 28) 388 ); 389 printf("vsid[%#x]=%#x\n", sr << 28, vsid); 390 } 381 391 } 382 392
Note:
See TracChangeset
for help on using the changeset viewer.