Changeset 74dcc07 in mainline
- Timestamp:
- 2013-06-07T19:07:08Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ee38a9
- Parents:
- dff90fa7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/src/mm/tlb.c
rdff90fa7 r74dcc07 37 37 #include <arch/mm/asid.h> 38 38 #include <arch/asm.h> 39 #include <arch/cp15.h> 39 40 #include <typedefs.h> 40 41 #include <arch/mm/page.h> … … 46 47 void tlb_invalidate_all(void) 47 48 { 48 asm volatile ( 49 "eor r1, r1\n" 50 "mcr p15, 0, r1, c8, c7, 0\n" 51 ::: "r1" 52 ); 49 TLBIALL_write(0); 53 50 } 54 51 … … 60 57 { 61 58 tlb_invalidate_all(); 59 // TODO: why not TLBIASID_write(asid) ? 62 60 } 63 61 … … 65 63 * 66 64 * @param page Virtual adress of the page 67 */ 65 */ 68 66 static inline void invalidate_page(uintptr_t page) 69 67 { 70 asm volatile ( 71 "mcr p15, 0, %[page], c8, c7, 1\n" 72 :: [page] "r" (page) 73 ); 68 TLBIMVA_write(page); 69 //TODO: What about TLBIMVAA? 74 70 } 75 71
Note:
See TracChangeset
for help on using the changeset viewer.