summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/md_var.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2003-09-05 22:50:10 +0000
committermarcel <marcel@FreeBSD.org>2003-09-05 22:50:10 +0000
commitb7c5acb1f2e86b904562f74ec1b5735eba81e26e (patch)
tree1dc1bd893e34c0b32d5201dadc20bfb36748a909 /sys/ia64/include/md_var.h
parentd1c253ce2300f067eb3c66f503932b0b7b05a583 (diff)
downloadFreeBSD-src-b7c5acb1f2e86b904562f74ec1b5735eba81e26e.zip
FreeBSD-src-b7c5acb1f2e86b904562f74ec1b5735eba81e26e.tar.gz
Fix a place where I forgot to change the code that checks whether
we return to kernel or userland. This triggered a panic in a KSE application when TDF_USTATCLOCK was set in the case userland was interrupted, but we never called ast() on our way out. As such, we called ast() at some other time. Unfortunately, TDF_USTATCLOCK handling assumes running in the interrupt thread. This was not the case anymore. To avoid making the same mistake later, interrupt() now returns to its caller whether we interrupted userland or not. This avoids that we have to duplicate the check in assembly, where it's bound to fall off the scope. Now we simply check the return value and call ast() if appropriate. Run into this: davidxu
Diffstat (limited to 'sys/ia64/include/md_var.h')
-rw-r--r--sys/ia64/include/md_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/include/md_var.h b/sys/ia64/include/md_var.h
index 3301f34..792742d 100644
--- a/sys/ia64/include/md_var.h
+++ b/sys/ia64/include/md_var.h
@@ -61,7 +61,7 @@ int ia64_highfp_load(struct thread *);
int ia64_highfp_save(struct thread *);
void ia64_init(void);
void ia64_probe_sapics(void);
-void interrupt(uint64_t, struct trapframe *);
+int interrupt(uint64_t, struct trapframe *);
void map_gateway_page(void);
void map_pal_code(void);
void map_port_space(void);
OpenPOWER on IntegriCloud