summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_bus.c
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/kern/subr_bus.c
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/kern/subr_bus.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud