aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunsup Lee <yunsup@cs.berkeley.edu>2011-04-09 20:15:05 -0700
committerYunsup Lee <yunsup@cs.berkeley.edu>2011-04-09 20:18:36 -0700
commit5e7e315deeebf89e7843e0a69d7a22808320257f (patch)
tree5c0158ef34e222754ab36cd75d82b6f067ebdb9e
parent033e1e62bddb71851221ca2076945a22e5c98ca3 (diff)
downloadpk-5e7e315deeebf89e7843e0a69d7a22808320257f.zip
pk-5e7e315deeebf89e7843e0a69d7a22808320257f.tar.gz
pk-5e7e315deeebf89e7843e0a69d7a22808320257f.tar.bz2
[pk] fix init_fp function prototype
-rw-r--r--pk/fp.c2
-rw-r--r--pk/handlers.c2
-rw-r--r--pk/pk.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/pk/fp.c b/pk/fp.c
index 5604bc8..153ba09 100644
--- a/pk/fp.c
+++ b/pk/fp.c
@@ -29,7 +29,7 @@ int emulate_fp(trapframe_t* tf)
if(have_fp)
{
if(!(mfpcr(PCR_SR) & SR_EF))
- init_fp();
+ init_fp(tf);
fp_state.fsr = get_fp_state(fp_state.fpr);
}
diff --git a/pk/handlers.c b/pk/handlers.c
index 474aa34..1638a42 100644
--- a/pk/handlers.c
+++ b/pk/handlers.c
@@ -7,7 +7,7 @@ int have_vector = 1;
static void handle_fp_disabled(trapframe_t* tf)
{
if(have_fp)
- init_fp();
+ init_fp(tf);
else
{
#ifdef PK_ENABLE_FP_EMULATION
diff --git a/pk/pk.h b/pk/pk.h
index 9d007e7..3def532 100644
--- a/pk/pk.h
+++ b/pk/pk.h
@@ -27,7 +27,7 @@ extern "C" {
extern int have_fp;
extern int have_vector;
int emulate_fp(trapframe_t*);
-void init_fp();
+void init_fp(trapframe_t* tf);
void printk(const char* s, ...);
void init_tf(trapframe_t*, long pc, long sp, int user64);