aboutsummaryrefslogtreecommitdiff
path: root/pk/handlers.c
diff options
context:
space:
mode:
authorHuy Vo <huytbvo@berkeley.edu>2013-01-03 21:44:46 -0800
committerHuy Vo <huytbvo@berkeley.edu>2013-01-03 21:44:46 -0800
commita1bcdcb74e17f93d66c94cd6ec537551dc7e142f (patch)
tree1eeafe80e60f313b26cd875d6ac3c66b775dfb4c /pk/handlers.c
parent15f31b54049fda09b60dc8e0b74dd5f65c7c8318 (diff)
downloadpk-eos14-bringup.zip
pk-eos14-bringup.tar.gz
pk-eos14-bringup.tar.bz2
updated to handle exceptions and illegal instructionseos14-bringup
Diffstat (limited to 'pk/handlers.c')
-rw-r--r--pk/handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pk/handlers.c b/pk/handlers.c
index da2f915..1e440e6 100644
--- a/pk/handlers.c
+++ b/pk/handlers.c
@@ -1,5 +1,6 @@
#include "pcr.h"
#include "pk.h"
+#include "config.h"
int have_fp = 1; // initialized to 1 because it can't be in the .bss section!
int have_vector = 1;
@@ -33,7 +34,7 @@ static void handle_privileged_instruction(trapframe_t* tf)
static void handle_illegal_instruction(trapframe_t* tf)
{
#ifdef PK_ENABLE_FP_EMULATION
- irq_enable();
+ // irq_enable();
if(emulate_fp(tf) == 0)
{