Ignore:
Timestamp:
Nov 10, 2004, 11:51:57 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ac8f462
Parents:
e79a1947
Message:

2004-11-10 Richard Campbell <richard.campbell@…>

  • configure.ac, mpc6xx/exceptions/raw_exception.c, mpc6xx/exceptions/raw_exception.h, mpc6xx/mmu/bat.c, mpc6xx/mmu/bat.h, mpc6xx/mmu/mmuAsm.S, shared/include/cpuIdent.c, shared/include/cpuIdent.h: Add MPC8240 and MPC8245 support. There was also a significant amount of spelling and whitespace cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc6xx/exceptions/raw_exception.c

    re79a1947 ra84392d  
    11/*
    22 * raw_exception.c  - This file contains implementation of C function to
    3  *                    Instanciate 60x ppc primary exception entries.
    4  *                    More detailled information can be found on motorola
     3 *                    Instantiate 60x ppc primary exception entries.
     4 *                    More detailed information can be found on motorola
    55 *                    site and more precisely in the following book :
    66 *
     
    3434
    3535void * codemove(void *, const void *, unsigned int, unsigned long);
     36
     37void* 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
    3647int mpc750_vector_is_valid(rtems_vector vector)
    3748
     
    135146        case PPC_603e:
    136147        case PPC_603ev:
     148        case PPC_8260:
     149        /* case PPC_8240: -- same value as 8260 */
     150        case PPC_8245:
    137151            if (!mpc603_vector_is_valid(vector)) {
    138152                return 0;
    139153            }
    140154            break;
    141         default:
    142             printk("Please complete libcpu/powerpc/mpc6xx/exceptions/raw_exception.c\n");
    143             printk("current_ppc_cpu = %x\n", current_ppc_cpu);
     155         default:
     156            printk("Please complete "
     157                   "libcpu/powerpc/mpc6xx/exceptions/raw_exception.c\n"
     158                   "current_ppc_cpu = %x\n", current_ppc_cpu);
    144159            return 0;
    145160     }
     
    152167
    153168    if (!mpc60x_vector_is_valid(except->exceptIndex)) {
     169      printk("mpc60x_set_exception: vector %d is not valid\n",
     170              except->exceptIndex);
    154171      return 0;
    155172    }
     
    161178     * to get the previous handler before accepting to disconnect.
    162179     */
    163     if (memcmp(mpc60x_get_vector_addr(except->exceptIndex), (void*)default_raw_except_entry.hdl.raw_hdl,default_raw_except_entry.hdl.raw_hdl_size)) {
     180
     181    if (memcmp(mpc60x_get_vector_addr(except->exceptIndex),
     182               (void*)default_raw_except_entry.hdl.raw_hdl,
     183               default_raw_except_entry.hdl.raw_hdl_size)) {
     184      printk("mpc60x_set_exception: raw vector not installed\n");
    164185      return 0;
    165186    }
Note: See TracChangeset for help on using the changeset viewer.