diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-12 15:16:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-09-12 15:16:02 +0000 |
commit | c83c3254d417d29e2d6809ebd3e6832105505da0 (patch) | |
tree | 8d4b68981fb529080f815fc5a824d88de500d166 /c/src/lib/libbsp/i386/shared/irq/irq_init.c | |
parent | 2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-c83c3254d417d29e2d6809ebd3e6832105505da0.tar.bz2 |
2007-09-12 Joel Sherrill <joel.sherrill@OARcorp.com>
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.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/irq/irq_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/i386/shared/irq/irq_init.c b/c/src/lib/libbsp/i386/shared/irq/irq_init.c index 67aae142f7..5c00859c16 100644 --- a/c/src/lib/libbsp/i386/shared/irq/irq_init.c +++ b/c/src/lib/libbsp/i386/shared/irq/irq_init.c @@ -114,7 +114,7 @@ void rtems_irq_mngt_init() int i; interrupt_gate_descriptor* idt_entry_tbl; unsigned int limit; - unsigned int level; + rtems_interrupt_level level; i386_get_info_from_IDTR(&idt_entry_tbl, &limit); @@ -126,7 +126,7 @@ void rtems_irq_mngt_init() while(1); } - _CPU_ISR_Disable(level); + rtems_interrupt_disable(level); /* * Init the complete IDT vector table with defaultRawIrq value |