diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-04 23:28:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-01-04 23:28:37 +0000 |
commit | a4d3eb0dcc85fca0a6d7de8bf50d8af330921002 (patch) | |
tree | 0bc438f51b5b49f4c73cd3fd89ee813a462d02f7 /c/src/lib/libbsp/i386/shared/irq/idt.c | |
parent | 2005-01-04 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-a4d3eb0dcc85fca0a6d7de8bf50d8af330921002.tar.bz2 |
2005-01-04 Joel Sherrill <joel@OARcorp.com>
* comm/gdb_glue.c, irq/idt.c: Remove warnings.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/i386/shared/irq/idt.c | 10 |
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) |