mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
bios_emulator: Allow a custom interrupt handler to be installed
Sometime we want to provide an interrupt handler for the ROM, Add a function to allow this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4c59f95327
commit
a3c700ec76
2 changed files with 6 additions and 0 deletions
|
@ -153,6 +153,7 @@ extern "C" { /* Use "C" linkage when in C++ mode */
|
|||
void X86EMU_setupMemFuncs(X86EMU_memFuncs * funcs);
|
||||
void X86EMU_setupPioFuncs(X86EMU_pioFuncs * funcs);
|
||||
void X86EMU_setupIntrFuncs(X86EMU_intrFuncs funcs[]);
|
||||
void X86EMU_setupIntrFunc(int intnum, X86EMU_intrFuncs func);
|
||||
void X86EMU_prepareForInt(int num);
|
||||
|
||||
/* decode.c */
|
||||
|
|
|
@ -273,6 +273,11 @@ void X86EMU_setupPioFuncs(X86EMU_pioFuncs * funcs)
|
|||
sys_outl = funcs->outl;
|
||||
}
|
||||
|
||||
void X86EMU_setupIntrFunc(int intnum, X86EMU_intrFuncs func)
|
||||
{
|
||||
_X86EMU_intrTab[intnum] = func;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
PARAMETERS:
|
||||
funcs - New interrupt vector table to make active
|
||||
|
|
Loading…
Reference in a new issue