Ignore:
Timestamp:
Sep 12, 2007, 3:16:02 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
47d88b7
Parents:
bd51a63
Message:

2007-09-12 Joel Sherrill <joel.sherrill@…>

PR 1257/bsps

  • shared/irq/idt.c, shared/irq/irq.c, shared/irq/irq_init.c: Code outside of cpukit should use the public API for rtems_interrupt_disable/rtems_interrupt_enable. By bypassing the public API and directly accessing _CPU_ISR_Disable and _CPU_ISR_Enable, they were bypassing the compiler memory barrier directive which could lead to problems. This patch also changes the type of the variable passed into these routines and addresses minor style issues.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/shared/irq/irq_init.c

    rbd51a63 rc83c325  
    115115    interrupt_gate_descriptor*  idt_entry_tbl;
    116116    unsigned int                limit;
    117     unsigned int                level;
     117    rtems_interrupt_level       level;
    118118
    119119    i386_get_info_from_IDTR(&idt_entry_tbl, &limit);
     
    127127    }
    128128
    129     _CPU_ISR_Disable(level);
     129    rtems_interrupt_disable(level);
    130130
    131131    /*
Note: See TracChangeset for help on using the changeset viewer.