Changeset d700909e in rtems
- Timestamp:
- Nov 10, 2004, 10:37:57 PM (16 years ago)
- Children:
- 70fefe6
- Parents:
- b90855c
- Location:
- c/src/lib/libcpu/powerpc
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/powerpc/ChangeLog
rb90855c rd700909e 1 2004-11-10 Richard Campbell <richard.campbell@oarcorp.com> 2 3 * configure.ac, mpc6xx/exceptions/raw_exception.c, 4 mpc6xx/exceptions/raw_exception.h, mpc6xx/mmu/bat.c, 5 mpc6xx/mmu/bat.h, mpc6xx/mmu/mmuAsm.S, shared/include/cpuIdent.c, 6 shared/include/cpuIdent.h: Add MPC8240 and MPC8245 support. There was 7 also a significant amount of spelling and whitespace cleanup. 8 1 9 2004-05-22 Till Strauman <strauman@slac.stanford.edu> 2 10 -
c/src/lib/libcpu/powerpc/configure.ac
rb90855c rd700909e 32 32 || test "$RTEMS_CPU_MODEL" = "mpc821" \ 33 33 || test "$RTEMS_CPU_MODEL" = "mpc860" \ 34 || test "$RTEMS_CPU_MODEL" = "mpc8240" \ 35 || test "$RTEMS_CPU_MODEL" = "mpc8245" \ 34 36 || test "$RTEMS_CPU_MODEL" = "mpc8260" \ 35 37 || test "$RTEMS_CPU_MODEL" = "mpc8xx" ) … … 40 42 || test "$RTEMS_CPU_MODEL" = "mpc604" \ 41 43 || test "$RTEMS_CPU_MODEL" = "mpc7400" \ 42 || test "$RTEMS_CPU_MODEL" = "mpc750" ) 44 || test "$RTEMS_CPU_MODEL" = "mpc750" \ 45 || test "$RTEMS_CPU_MODEL" = "mpc8240" \ 46 || test "$RTENS_CPU_MODEL" = "mpc8245" ) 43 47 AM_CONDITIONAL(mpc8xx, test "$RTEMS_CPU_MODEL" = "mpc8xx" \ 44 48 || test "$RTEMS_CPU_MODEL" = "mpc821" \ -
c/src/lib/libcpu/powerpc/mpc6xx/exceptions/raw_exception.c
rb90855c rd700909e 1 1 /* 2 2 * raw_exception.c - This file contains implementation of C function to 3 * Instan ciate 60x ppc primary exception entries.4 * More detail led information can be found on motorola3 * Instantiate 60x ppc primary exception entries. 4 * More detailed information can be found on motorola 5 5 * site and more precisely in the following book : 6 6 * … … 34 34 35 35 void * codemove(void *, const void *, unsigned int, unsigned long); 36 37 void* mpc60x_get_vector_addr(rtems_vector vector) 38 { 39 extern rtems_cpu_table Cpu_table; 40 41 if ( Cpu_table.exceptions_in_RAM ) 42 return ((void*) (((unsigned) vector) << 8)); 43 44 return ((void*) (((unsigned) vector) << 8) + 0xfff00000); 45 } 46 36 47 int mpc750_vector_is_valid(rtems_vector vector) 37 48 … … 134 145 case PPC_603e: 135 146 case PPC_603ev: 147 case PPC_8260: 148 /* case PPC_8240: -- same value as 8260 */ 149 case PPC_8245: 136 150 if (!mpc603_vector_is_valid(vector)) { 137 151 return 0; 138 152 } 139 153 break; 140 default: 141 printk("Please complete libcpu/powerpc/mpc6xx/exceptions/raw_exception.c\n"); 142 printk("current_ppc_cpu = %x\n", current_ppc_cpu); 154 default: 155 printk("Please complete " 156 "libcpu/powerpc/mpc6xx/exceptions/raw_exception.c\n" 157 "current_ppc_cpu = %x\n", current_ppc_cpu); 143 158 return 0; 144 159 } … … 151 166 152 167 if (!mpc60x_vector_is_valid(except->exceptIndex)) { 168 printk("mpc60x_set_exception: vector %d is not valid\n", 169 except->exceptIndex); 153 170 return 0; 154 171 } … … 160 177 * to get the previous handler before accepting to disconnect. 161 178 */ 162 if (memcmp(mpc60x_get_vector_addr(except->exceptIndex), (void*)default_raw_except_entry.hdl.raw_hdl,default_raw_except_entry.hdl.raw_hdl_size)) { 179 180 if (memcmp(mpc60x_get_vector_addr(except->exceptIndex), 181 (void*)default_raw_except_entry.hdl.raw_hdl, 182 default_raw_except_entry.hdl.raw_hdl_size)) { 183 printk("mpc60x_set_exception: raw vector not installed\n"); 163 184 return 0; 164 185 } -
c/src/lib/libcpu/powerpc/mpc6xx/exceptions/raw_exception.h
rb90855c rd700909e 3 3 * 4 4 * This file contains implementation of C function to 5 * Instan ciate 60x ppc primary exception entries.6 * More detail led information can be found on motorola5 * Instantiate 60x ppc primary exception entries. 6 * More detailed information can be found on motorola 7 7 * site and more precisely in the following book : 8 8 * … … 160 160 extern int mpc750_vector_is_valid(rtems_vector vector); 161 161 162 inline static void* mpc60x_get_vector_addr(rtems_vector vector)163 {164 return ((void*) (((unsigned) vector) << 8));165 }166 162 /* 167 163 * Exception global init. -
c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c
rb90855c rd700909e 3 3 * 4 4 * This file contains the implementation of C function to 5 * Instan ciate 60x/7xx ppc Block Address Translation (BAT) registers.6 * More detail led information can be found on motorola5 * Instantiate 60x/7xx ppc Block Address Translation (BAT) registers. 6 * More detailed information can be found on motorola 7 7 * site and more precisely in the following book : 8 8 * -
c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.h
rb90855c rd700909e 3 3 * 4 4 * This file contains declaration of C function to 5 * Instan ciate 60x/7xx ppc Block Address Translation (BAT) registers.6 * More detail led information can be found on motorola5 * Instantiate 60x/7xx ppc Block Address Translation (BAT) registers. 6 * More detailed information can be found on motorola 7 7 * site and more precisely in the following book : 8 8 * -
c/src/lib/libcpu/powerpc/mpc6xx/mmu/mmuAsm.S
rb90855c rd700909e 36 36 #define PPC_821 PPC_860 37 37 #define PPC_8260 0x81 38 #define PPC_8240 PPC_8260 38 39 39 40 /* ALTIVEC instructions (not recognized by off-the shelf gcc yet) */ -
c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c
rb90855c rd700909e 41 41 case PPC_860: return "MPC860"; 42 42 case PPC_8260: return "MPC8260"; 43 case PPC_8245: return "MPC8245"; 43 44 default: 44 printk("Unknown CPU value of 0x%x. Please add it to <libcpu/powerpc/shared/include/cpuIdent.c>\n", cpu ); 45 printk("Unknown CPU value of 0x%x. Please add it to " 46 "<libcpu/powerpc/shared/include/cpuIdent.c>\n", cpu ); 45 47 } 46 48 return "UNKNOWN"; … … 63 65 case PPC_860: 64 66 case PPC_8260: 67 case PPC_8245: 65 68 return current_ppc_cpu; 66 69 default: 67 printk("Unknown PVR value of 0x%x. Please add it to <libcpu/powerpc/shared/include/cpuIdent.c>\n", pvr ); 70 printk("Unknown PVR value of 0x%x. Please add it to " 71 "<libcpu/powerpc/shared/include/cpuIdent.c>\n", pvr ); 68 72 return PPC_UNKNOWN; 69 73 } -
c/src/lib/libcpu/powerpc/shared/include/cpuIdent.h
rb90855c rd700909e 33 33 PPC_821 = PPC_860, 34 34 PPC_8260 = 0x81, 35 PPC_UNKNOWN = 0xff 35 PPC_8240 = PPC_8260, 36 PPC_8245 = 0x8081, 37 PPC_UNKNOWN = 0xffff 36 38 } ppc_cpu_id_t; 37 39
Note: See TracChangeset
for help on using the changeset viewer.