Changeset 3776348f in rtems


Ignore:
Timestamp:
May 5, 2009, 4:27:59 PM (10 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, master
Children:
2f1f2ed
Parents:
42b6dd2a
Message:

2009-05-05 Jennifer Averett <jennifer.averett@…>

  • mpc6xx/mmu/bat.c, new-exceptions/e500_raw_exc_init.c, new-exceptions/raw_exception.h, new-exceptions/bspsupport/irq_supp.h, shared/include/cpuIdent.c: Removed warnings. Split bsp_irq_dispatch_list to allow non-standard/non-existant pics to call with interrupts off.
Location:
c/src/lib/libcpu/powerpc
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    r42b6dd2a r3776348f  
     12009-05-05      Jennifer Averett <jennifer.averett@OARcorp.com>
     2
     3        * mpc6xx/mmu/bat.c, new-exceptions/e500_raw_exc_init.c,
     4        new-exceptions/raw_exception.h, new-exceptions/bspsupport/irq_supp.h,
     5        shared/include/cpuIdent.c: Removed warnings. Split
     6        bsp_irq_dispatch_list to allow non-standard/non-existant pics to call
     7        with interrupts off.
     8
    192009-03-12      Joel Sherrill <joel.sherrill@OARcorp.com>
    210
  • c/src/lib/libcpu/powerpc/mpc6xx/mmu/bat.c

    r42b6dd2a r3776348f  
    161161 */
    162162static void
    163 bat_addrs_init ()
     163bat_addrs_init (void)
    164164{
    165165  ubat bat;
     
    205205
    206206static void
    207 do_dssall ()
     207do_dssall (void)
    208208{
    209209  /* Before changing BATs, 'dssall' must be issued.
     
    228228/* Clear I/D bats 4..7 ONLY ON 7455 etc.  */
    229229static void
    230 clear_hi_bats ()
     230clear_hi_bats (void)
    231231{
    232232  do_dssall ();
  • c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/irq_supp.h

    r42b6dd2a r3776348f  
    6868
    6969/*
     70 * Snippet to be used by PIC drivers and by bsp_irq_dispatch_list
     71 * traverses list of shared handlers for a given interrupt
     72 *
     73 */
     74
     75static inline void
     76bsp_irq_dispatch_list_base(
     77  rtems_irq_connect_data *tbl,
     78  unsigned irq,
     79  rtems_irq_hdl sentinel
     80)
     81{
     82        rtems_irq_connect_data* vchain;
     83        for( vchain = &tbl[irq];
     84                        ((int)vchain != -1 && vchain->hdl != sentinel);
     85                        vchain = (rtems_irq_connect_data*)vchain->next_handler )
     86        {
     87          vchain->hdl(vchain->handle);
     88        }
     89}
     90
     91
     92/*
    7093 * Snippet to be used by PIC drivers;
    7194 * enables interrupts, traverses list of
     
    91114        _ISR_Set_level(0);
    92115
    93         rtems_irq_connect_data* vchain;
    94         for( vchain = &tbl[irq];
    95                         ((int)vchain != -1 && vchain->hdl != sentinel);
    96                         vchain = (rtems_irq_connect_data*)vchain->next_handler )
    97         {
    98                 vchain->hdl(vchain->handle);
    99         }
     116
     117        bsp_irq_dispatch_list_base( tbl, irq, sentinel );
    100118
    101119        /* Restore original level */
  • c/src/lib/libcpu/powerpc/new-exceptions/e500_raw_exc_init.c

    r42b6dd2a r3776348f  
    3939}
    4040
    41 void e200_setup_raw_exceptions()
     41void e200_setup_raw_exceptions(void)
    4242{
    4343        if (current_ppc_cpu != PPC_e200z6) {
  • c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.h

    r42b6dd2a r3776348f  
    232232
    233233int ppc_is_e500();
    234 void e500_setup_raw_exceptions();
     234void e200_setup_raw_exceptions(void);
     235void e500_setup_raw_exceptions(void);
    235236
    236237/* This variable is initialized to 'TRUE' by default;
  • c/src/lib/libcpu/powerpc/shared/include/cpuIdent.c

    r42b6dd2a r3776348f  
    7171}
    7272
    73 ppc_cpu_id_t get_ppc_cpu_type()
     73ppc_cpu_id_t get_ppc_cpu_type(void)
    7474{
    7575  unsigned int pvr;
     
    186186}
    187187
    188 ppc_cpu_revision_t get_ppc_cpu_revision()
     188ppc_cpu_revision_t get_ppc_cpu_revision(void)
    189189{
    190190  ppc_cpu_revision_t rev = (ppc_cpu_revision_t) (_read_PVR() & 0xffff);
Note: See TracChangeset for help on using the changeset viewer.