git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: better rtc framework which aims to remove single rtc restrictions.
[lunaix-os.git]
/
lunaix-os
/
arch
/
i386
/
exceptions
/
i386_isrm.c
diff --git
a/lunaix-os/arch/i386/exceptions/i386_isrm.c
b/lunaix-os/arch/i386/exceptions/i386_isrm.c
index 1d5950ef37e1a4c12d023cf41c6722b29656a5b0..2aabc39214711f8443c340301cc72ece00c0e53d 100644
(file)
--- a/
lunaix-os/arch/i386/exceptions/i386_isrm.c
+++ b/
lunaix-os/arch/i386/exceptions/i386_isrm.c
@@
-12,6
+12,7
@@
static char iv_bmp[(IV_EX_END - IV_BASE_END) / 8];
static isr_cb handlers[TOTAL_IV];
static char iv_bmp[(IV_EX_END - IV_BASE_END) / 8];
static isr_cb handlers[TOTAL_IV];
+static ptr_t ivhand_payload[TOTAL_IV];
extern void
intr_routine_fallback(const isr_param* param);
extern void
intr_routine_fallback(const isr_param* param);
@@
-117,4
+118,20
@@
isrm_get(int iv)
assert(iv < 256);
return handlers[iv];
assert(iv < 256);
return handlers[iv];
+}
+
+ptr_t
+isrm_get_payload(int iv)
+{
+ assert(iv < 256);
+
+ return ivhand_payload[iv];
+}
+
+void
+isrm_set_payload(int iv, ptr_t payload)
+{
+ assert(iv < 256);
+
+ ivhand_payload[iv] = payload;
}
\ No newline at end of file
}
\ No newline at end of file