projects
/
bootcensus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added makefile rule to create bootable CDs and removed a printf call in
[bootcensus]
/
src
/
intr.c
diff --git
a/src/intr.c
b/src/intr.c
index
a9bd5f1
..
e04a177
100644
(file)
--- a/
src/intr.c
+++ b/
src/intr.c
@@
-116,7
+116,10
@@
struct intr_frame *get_intr_frame(void)
/* set an interrupt handler function for a particular interrupt */
void interrupt(int intr_num, intr_func_t func)
{
/* set an interrupt handler function for a particular interrupt */
void interrupt(int intr_num, intr_func_t func)
{
+ int iflag = get_intr_flag();
+ disable_intr();
intr_func[intr_num] = func;
intr_func[intr_num] = func;
+ set_intr_flag(iflag);
}
/* this function is called from all interrupt entry points
}
/* this function is called from all interrupt entry points