Ignore:
Timestamp:
Nov 22, 2004, 10:15:47 PM (16 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8eaa3ea
Parents:
270ce1ff
Message:

2004-11-22 Jennifer Averett <jennifer@…>

PR 581/bsps

  • mpc6xx/exceptions/raw_exception.c, shared/include/cpuIdent.h: Converting PSIM to new exception model required adding PSIM as PowerPC CPU model.
File:
1 edited

Legend:

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

    r270ce1ff rfaed5fa  
    6666  default: return 0;
    6767  }
     68}
     69
     70int PSIM_vector_is_valid(rtems_vector vector)
     71{
     72  switch(vector) {
     73  case ASM_RESET_VECTOR: /* fall through */
     74  case ASM_MACH_VECTOR:
     75  case ASM_PROT_VECTOR:
     76  case ASM_ISI_VECTOR:
     77  case ASM_EXT_VECTOR:
     78  case ASM_ALIGN_VECTOR:
     79  case ASM_PROG_VECTOR:
     80  case ASM_FLOAT_VECTOR:
     81  case ASM_DEC_VECTOR:
     82    return 1;
     83  case ASM_SYS_VECTOR:
     84    return 0;
     85  case ASM_TRACE_VECTOR:
     86    return 1;
     87  case ASM_PERFMON_VECTOR:
     88    return 0;
     89  case ASM_IMISS_VECTOR: /* fall through */
     90  case ASM_DLMISS_VECTOR:
     91  case ASM_DSMISS_VECTOR:
     92  case ASM_ADDR_VECTOR:
     93  case ASM_SYSMGMT_VECTOR:
     94    return 1;
     95  case ASM_ITM_VECTOR:
     96    return 0;
     97  }
     98  return 0;
    6899}
    69100
     
    153184            }
    154185            break;
     186        case PPC_PSIM:
     187            if (!PSIM_vector_is_valid(vector)) {
     188                return 0;
     189            }
     190            break;
    155191         default:
    156192            printk("Please complete "
Note: See TracChangeset for help on using the changeset viewer.