mirror of
https://xff.cz/git/u-boot/
synced 2025-09-07 11:42:13 +02:00
Moved definition of set_vector() to new header file
This allows for future tidy ups and functionality that will require set_vector () Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
This commit is contained in:
committed by
Wolfgang Denk
parent
407976185e
commit
9933d60902
@@ -26,6 +26,7 @@
|
||||
#include <asm/io.h>
|
||||
#include <asm/i8259.h>
|
||||
#include <asm/ibmpc.h>
|
||||
#include <asm/interrupt.h>
|
||||
|
||||
|
||||
struct idt_entry {
|
||||
@@ -376,7 +377,7 @@ asm ("idt_ptr:\n"
|
||||
".long idt\n" /* offset */
|
||||
".word 0x18\n");/* data segment */
|
||||
|
||||
static void set_vector(int intnum, void *routine)
|
||||
void set_vector(int intnum, void *routine)
|
||||
{
|
||||
idt[intnum].base_high = (u16)((u32)(routine)>>16);
|
||||
idt[intnum].base_low = (u16)((u32)(routine)&0xffff);
|
||||
|
Reference in New Issue
Block a user