Ignore:
Timestamp:
Nov 22, 2004, 10:30:59 PM (16 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Children:
f778d4c5
Parents:
24fced7
Message:

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

PR 581/bsps

  • Makefile.am, bsp_specs, configure.ac, clock/Makefile.am, include/bsp.h, start/Makefile.am, start/start.S, startup/Makefile.am, startup/bspstart.c, startup/linkcmds, vectors/Makefile.am, vectors/vectors.S, wrapup/Makefile.am: Convert PSIM to new exception model.
  • irq/Makefile.am, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c: New files.
  • clock/clock.c: Removed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/include/bsp.h

    r24fced7 r561f53b  
    5555#include <rtems.h>
    5656#include <console.h>
     57#include <libcpu/io.h>
    5758#include <clockdrv.h>
    58 #include <console.h>
    5959#include <iosupp.h>
    60 
    61 /*
    62  *  Define the time limits for RTEMS Test Suite test durations.
    63  *  Long test and short test duration limits are provided.  These
    64  *  values are in seconds and need to be converted to ticks for the
    65  *  application.
    66  *
    67  */
    68 
    69 #define MAX_LONG_TEST_DURATION       300 /* 5 minutes = 300 seconds */
    70 #define MAX_SHORT_TEST_DURATION      3   /* 3 seconds */
    71 
     60#include <bsp/vectors.h>
    7261
    7362/*
    7463 *  Stuff for Time Test 27
    7564 */
     65#if defined(RTEMS_TM27)
     66
     67#include <bsp/irq.h>
    7668
    7769#define MUST_WAIT_FOR_INTERRUPT 1
    7870
    79 #define Install_tm27_vector( _handler ) \
    80   set_vector( (_handler), PPC_IRQ_DECREMENTER, 1 )
     71/* #define Install_tm27_vector( _handler ) \
     72   set_vector( (_handler), PPC_IRQ_DECREMENTER, 1 ) */
     73
     74void nullFunc() {}
     75static rtems_irq_connect_data clockIrqData = {BSP_DECREMENTER,
     76                                              0,
     77                                              (rtems_irq_enable)nullFunc,
     78                                              (rtems_irq_disable)nullFunc,
     79                                              (rtems_irq_is_enabled) nullFunc};
     80
     81void Install_tm27_vector(void (*_handler)())
     82{
     83  clockIrqData.hdl = _handler;
     84  if (!BSP_install_rtems_irq_handler (&clockIrqData)) {
     85        printk("Error installing clock interrupt handler!\n");
     86        rtems_fatal_error_occurred(1);
     87  }
     88}
     89
    8190
    8291#define Cause_tm27_intr()  \
     
    101110    asm volatile( "mtmsr %0 ;" : "=r" (_msr) : "r" (_msr) ); \
    102111  } while (0)
     112#endif
    103113
    104114/* Constants */
     
    121131 */
    122132
    123 extern int   RAM_START;
    124133extern int   RAM_END;
    125 extern int   RAM_SIZE;
    126 
    127 extern int   PROM_START;
    128 extern int   PROM_END;
    129 extern int   PROM_SIZE;
    130 
    131 extern int   CLOCK_SPEED;
    132 
    133134extern int   end;        /* last address in the program */
    134135
     136
     137#define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
     138
    135139/* functions */
    136 
    137 void bsp_start( void );
    138 
    139 void bsp_cleanup( void );
    140140
    141141rtems_isr_entry set_vector(                    /* returns old vector */
     
    145145);
    146146
    147 void DEBUG_puts( char *string );
    148 
    149 void BSP_fatal_return( void );
    150 
    151 void bsp_spurious_initialize( void );
     147void bsp_cleanup( void );
    152148
    153149extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
    154 
    155150extern rtems_cpu_table           Cpu_table;             /* owned by BSP */
    156 
    157 extern rtems_unsigned32          bsp_isr_level;
    158151
    159152#endif /* ASM */
Note: See TracChangeset for help on using the changeset viewer.