Changeset 7c322bd in mainline
- Timestamp:
- 2006-03-12T13:13:12Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bdab828
- Parents:
- e792fa7
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/include/pal/pal.h
re792fa7 r7c322bd 89 89 #define PAL_PMI_ENTRYPOINT 32 90 90 91 /* 92 Ski PTCE data 93 */ 94 #define PAL_PTCE_INFO_BASE() (0x100000000LL) 95 #define PAL_PTCE_INFO_COUNT1() (2) 96 #define PAL_PTCE_INFO_COUNT2() (3) 97 #define PAL_PTCE_INFO_STRIDE1() (0x10000000) 98 #define PAL_PTCE_INFO_STRIDE2() (0x2000) 99 100 91 101 #endif -
arch/ia64/src/mm/tlb.c
re792fa7 r7c322bd 39 39 #include <arch/barrier.h> 40 40 #include <arch/interrupt.h> 41 #include <arch/pal/pal.h> 42 #include <arch/asm.h> 41 43 #include <typedefs.h> 42 44 #include <panic.h> … … 46 48 void tlb_invalidate_all(void) 47 49 { 48 /* TODO */ 50 __address adr; 51 __u32 count1,count2,stride1,stride2; 52 53 int i,j; 54 55 adr=PAL_PTCE_INFO_BASE(); 56 count1=PAL_PTCE_INFO_COUNT1(); 57 count2=PAL_PTCE_INFO_COUNT2(); 58 stride1=PAL_PTCE_INFO_STRIDE1(); 59 stride2=PAL_PTCE_INFO_STRIDE2(); 60 61 interrupts_disable(); 62 63 for(i=0;i<count1;i++) 64 { 65 for(j=0;j<count2;j++) 66 { 67 asm volatile 68 ( 69 "ptc.e %0;;" 70 : 71 :"r" (adr) 72 ); 73 adr+=stride2; 74 } 75 adr+=stride1; 76 } 77 78 interrupts_enable(); 79 80 srlz_d(); 81 srlz_i(); 49 82 } 50 83 -
kernel.config
re792fa7 r7c322bd 90 90 @ "mm/slab2" SLAB test2 - SMP CPU cache 91 91 @ "fault/fault1" Write to NULL (maybe page fault) 92 @ "mm/purge1" Itanium TLB purge test 92 93 @ [ARCH=mips32] "debug/mips1" Mips breakpoint-debug test 93 94 ! CONFIG_TEST (choice)
Note:
See TracChangeset
for help on using the changeset viewer.