Changeset 655f70b in mainline for kernel/arch/ppc32/src/mm/tlb.c
- Timestamp:
- 2011-05-23T20:40:49Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d4c472b
- Parents:
- f66b565
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/mm/tlb.c
rf66b565 r655f70b 81 81 void tlb_invalidate_all(void) 82 82 { 83 uint32_t index; 83 asm volatile ( 84 "sync\n" 85 ); 86 87 for (unsigned int i = 0; i < 0x00040000; i += 0x00001000) { 88 asm volatile ( 89 "tlbie %[i]\n" 90 :: [i] "r" (i) 91 ); 92 } 84 93 85 94 asm volatile ( 86 "li %[index], 0\n"87 "sync\n"88 89 ".rept 64\n"90 " tlbie %[index]\n"91 " addi %[index], %[index], 0x1000\n"92 ".endr\n"93 94 95 "eieio\n" 95 96 "tlbsync\n" 96 97 "sync\n" 97 : [index] "=r" (index)98 98 ); 99 99 }
Note:
See TracChangeset
for help on using the changeset viewer.