summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/dsp.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-01-20 03:29:24 +0000
committermarcel <marcel@FreeBSD.org>2004-01-20 03:29:24 +0000
commit1bf3c3e6434fdf234bfa5471a146508c48e6f7f4 (patch)
tree5f1c75d46b03c6888460627028a211c317fbf3d4 /sys/dev/sound/pcm/dsp.c
parentd62dc6465aca86888b49930251fe69c6ff0ae096 (diff)
downloadFreeBSD-src-1bf3c3e6434fdf234bfa5471a146508c48e6f7f4.zip
FreeBSD-src-1bf3c3e6434fdf234bfa5471a146508c48e6f7f4.tar.gz
Fix handling of FP traps:
o For traps, the cr.iip register points to the next instruction to execute on interrupt return (modulo slot). Since we need to get the bundle of the instruction that caused the FP fault/trap, make sure we fetch the previous bundle if the next instruction is in fact the first in a bundle. o When we call the FPSWA handler, we need to tell it whether it's a trap or a fault (first argument). This was hardcoded to mean a fault. Also, for FP faults, when a fault is converted to a trap, adjust the cr.iip and cr.ipsr registers to point to the next instruction. This makes sure that the SIGFPE handler gets a consistent state.
Diffstat (limited to 'sys/dev/sound/pcm/dsp.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud