diff options
author | Yunsup Lee <yunsup@cs.berkeley.edu> | 2011-04-09 20:15:05 -0700 |
---|---|---|
committer | Yunsup Lee <yunsup@cs.berkeley.edu> | 2011-04-09 20:18:36 -0700 |
commit | 5e7e315deeebf89e7843e0a69d7a22808320257f (patch) | |
tree | 5c0158ef34e222754ab36cd75d82b6f067ebdb9e | |
parent | 033e1e62bddb71851221ca2076945a22e5c98ca3 (diff) | |
download | pk-5e7e315deeebf89e7843e0a69d7a22808320257f.zip pk-5e7e315deeebf89e7843e0a69d7a22808320257f.tar.gz pk-5e7e315deeebf89e7843e0a69d7a22808320257f.tar.bz2 |
[pk] fix init_fp function prototype
-rw-r--r-- | pk/fp.c | 2 | ||||
-rw-r--r-- | pk/handlers.c | 2 | ||||
-rw-r--r-- | pk/pk.h | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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 @@ -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); |