summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/i386/shared/irq/idt.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2005-01-04 23:28:37 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2005-01-04 23:28:37 +0000
commita4d3eb0dcc85fca0a6d7de8bf50d8af330921002 (patch)
tree0bc438f51b5b49f4c73cd3fd89ee813a462d02f7 /c/src/lib/libbsp/i386/shared/irq/idt.c
parent2005-01-04 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-a4d3eb0dcc85fca0a6d7de8bf50d8af330921002.tar.bz2
2005-01-04 Joel Sherrill <joel@OARcorp.com>
* comm/gdb_glue.c, irq/idt.c: Remove warnings.
Diffstat (limited to 'c/src/lib/libbsp/i386/shared/irq/idt.c')
-rw-r--r--c/src/lib/libbsp/i386/shared/irq/idt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/i386/shared/irq/idt.c b/c/src/lib/libbsp/i386/shared/irq/idt.c
index 909d82eac4..465cbd4e27 100644
--- a/c/src/lib/libbsp/i386/shared/irq/idt.c
+++ b/c/src/lib/libbsp/i386/shared/irq/idt.c
@@ -40,9 +40,9 @@ void create_interrupt_gate_descriptor (interrupt_gate_descriptor* idtEntry,
rtems_raw_irq_hdl get_hdl_from_vector(rtems_vector_offset index)
{
- rtems_raw_irq_hdl hdl;
+ uint32_t hdl;
interrupt_gate_descriptor* idt_entry_tbl;
- unsigned limit;
+ uint32_t limit;
i386_get_info_from_IDTR (&idt_entry_tbl, &limit);
@@ -53,9 +53,9 @@ rtems_raw_irq_hdl get_hdl_from_vector(rtems_vector_offset index)
return 0;
}
- * ((unsigned int*) &hdl) = (idt_entry_tbl[index].low_offsets_bits |
- (idt_entry_tbl[index].high_offsets_bits << 16));
- return hdl;
+ hdl = (idt_entry_tbl[index].low_offsets_bits |
+ (idt_entry_tbl[index].high_offsets_bits << 16));
+ return (rtems_raw_irq_hdl) hdl;
}
int i386_set_idt_entry (const rtems_raw_irq_connect_data* irq)