Ignore:
Timestamp:
Nov 10, 2004, 10:37:57 PM (16 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
70fefe6
Parents:
b90855c
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

    rb90855c rd700909e  
    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
     
    134145        case PPC_603e:
    135146        case PPC_603ev:
     147        case PPC_8260:
     148        /* case PPC_8240: -- same value as 8260 */
     149        case PPC_8245:
    136150            if (!mpc603_vector_is_valid(vector)) {
    137151                return 0;
    138152            }
    139153            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);
    143158            return 0;
    144159     }
     
    151166
    152167    if (!mpc60x_vector_is_valid(except->exceptIndex)) {
     168      printk("mpc60x_set_exception: vector %d is not valid\n",
     169              except->exceptIndex);
    153170      return 0;
    154171    }
     
    160177     * to get the previous handler before accepting to disconnect.
    161178     */
    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");
    163184      return 0;
    164185    }
Note: See TracChangeset for help on using the changeset viewer.