Changeset daccc4a in rtems


Ignore:
Timestamp:
Dec 2, 2007, 9:43:54 PM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
c10dc13
Parents:
b1a2bbae
Message:

2007-12-02 Till Straumann <strauman@…>

  • irq/no_pic.c: use new inline routine exported by shared/irq/irq_supp.h for scanning the handler list.
Location:
c/src/lib/libbsp/powerpc/psim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/ChangeLog

    rb1a2bbae rdaccc4a  
     12007-12-02      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * irq/no_pic.c: use new inline routine exported by
     4        shared/irq/irq_supp.h for scanning the handler list.
     5
    162007-12-02      Till Straumann <strauman@slac.stanford.edu>
    27
  • c/src/lib/libbsp/powerpc/psim/irq/no_pic.c

    rb1a2bbae rdaccc4a  
    2222
    2323static rtems_irq_connect_data *rtems_hdl_tbl;
     24static rtems_irq_connect_data  dflt_entry;
    2425
    2526/*
     
    2829void C_dispatch_irq_handler (struct _BSP_Exception_frame *frame, unsigned int excNum)
    2930{
    30         register unsigned msr;
    31         register unsigned new_msr;
     31register uint32_t l_orig;
    3232
    3333        if (excNum == ASM_DEC_VECTOR) {
    34                 _CPU_MSR_GET(msr);
    35                 new_msr = msr | MSR_EE;
    36                 _CPU_MSR_SET(new_msr);
    3734
    38                 rtems_hdl_tbl[BSP_DECREMENTER].hdl(rtems_hdl_tbl[BSP_DECREMENTER].handle);
     35                l_orig = _ISR_Get_level();
     36                /* re-enable all interrupts */
     37                _ISR_Set_level(0);
    3938
    40                 _CPU_MSR_SET(msr);
     39                bsp_irq_dispatch_list(rtems_hdl_tbl, BSP_DECREMENTER, dflt_entry.hdl);
     40
     41                _ISR_Set_level(l_orig);
    4142                return;
    4243
     
    4950}
    5051
    51 void
     52int
    5253BSP_disable_irq_at_pic(const rtems_irq_number irq)
    5354{
     55        return 0;
    5456}
    5557
     
    5759BSP_setup_the_pic(rtems_irq_global_settings *config)
    5860{
     61        dflt_entry    = config->defaultEntry;
    5962        rtems_hdl_tbl = config->irqHdlTbl;
    6063        return 1;
Note: See TracChangeset for help on using the changeset viewer.