Changeset d700909e in rtems for c/src/lib/libcpu/powerpc/mpc6xx/exceptions/raw_exception.c
- Timestamp:
- Nov 10, 2004, 10:37:57 PM (16 years ago)
- Children:
- 70fefe6
- Parents:
- b90855c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.