[coreboot] New patch to review for coreboot: 6ad96a0 YABEL: Common API to register interrupt handlers

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Fri Oct 5 19:52:07 CEST 2012


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1558

-gerrit

commit 6ad96a0dcb78119b2faeb821976247642bef0a7d
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Thu Aug 16 15:39:35 2012 +0200

    YABEL: Common API to register interrupt handlers
    
    Provide (mostly) the same API for registering
    interrupt handlers as with x86emu.
    
    Change-Id: I1364b08d9043039550786a1758508ae088813aa3
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 src/devices/oprom/yabel/biosemu.c | 6 ++++++
 src/devices/oprom/yabel/biosemu.h | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/devices/oprom/yabel/biosemu.c b/src/devices/oprom/yabel/biosemu.c
index 8d77959..2a2ca31 100644
--- a/src/devices/oprom/yabel/biosemu.c
+++ b/src/devices/oprom/yabel/biosemu.c
@@ -44,6 +44,12 @@ static X86EMU_pioFuncs my_pio_funcs = {
 /* interrupt function override array (see biosemu.h) */
 yabel_handleIntFunc yabel_intFuncArray[256];
 
+void
+mainboard_interrupt_handlers(int interrupt, yabel_handleIntFunc func)
+{
+	yabel_intFuncArray[interrupt] = func;
+}
+
 /* main entry into YABEL biosemu, arguments are:
  * *biosmem = pointer to virtual memory
  * biosmem_size = size of the virtual memory
diff --git a/src/devices/oprom/yabel/biosemu.h b/src/devices/oprom/yabel/biosemu.h
index 39cc0a9..4f5c4aa 100644
--- a/src/devices/oprom/yabel/biosemu.h
+++ b/src/devices/oprom/yabel/biosemu.h
@@ -45,6 +45,7 @@
  * the function pointer is NULL */
 typedef int (* yabel_handleIntFunc)(void);
 extern yabel_handleIntFunc yabel_intFuncArray[256];
+void mainboard_interrupt_handlers(int, yabel_handleIntFunc);
 
 struct device;
 




More information about the coreboot mailing list