aboutsummaryrefslogtreecommitdiff
path: root/pk/handlers.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-02-04 16:09:01 -0800
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-02-04 16:09:01 -0800
commitaf2d471a4e6c2e4551238a2cc209f9c0d997c82f (patch)
tree324c10ad4431e08b28b3166169a1ccd3833b0d50 /pk/handlers.c
parent83cdb2063f62d4d535aebbaff484e068808e097b (diff)
downloadpk-af2d471a4e6c2e4551238a2cc209f9c0d997c82f.zip
pk-af2d471a4e6c2e4551238a2cc209f9c0d997c82f.tar.gz
pk-af2d471a4e6c2e4551238a2cc209f9c0d997c82f.tar.bz2
[pk] fixed FP emulation bug
kernel would erroneously trap on FP disabled
Diffstat (limited to 'pk/handlers.c')
-rw-r--r--pk/handlers.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pk/handlers.c b/pk/handlers.c
index 2947903..cb580e6 100644
--- a/pk/handlers.c
+++ b/pk/handlers.c
@@ -13,10 +13,7 @@ void handle_breakpoint(trapframe_t* tf)
void handle_fp_disabled(trapframe_t* tf)
{
if(have_fp)
- {
- init_fp_regs();
- tf->sr |= SR_EF;
- }
+ init_fp();
else
{
#ifdef PK_ENABLE_FP_EMULATION