aboutsummaryrefslogtreecommitdiff
path: root/pk/fp.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-12 01:42:20 -0700
committerAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>2011-04-12 01:42:20 -0700
commit27afdf1a005c2e24af79107095aae3155e68b254 (patch)
treea5140912c1a50b8b9d4f6528244db3699c114446 /pk/fp.c
parent7e6145731f4d52e9b6a6383c650c8de68da7aa34 (diff)
downloadpk-27afdf1a005c2e24af79107095aae3155e68b254.zip
pk-27afdf1a005c2e24af79107095aae3155e68b254.tar.gz
pk-27afdf1a005c2e24af79107095aae3155e68b254.tar.bz2
[sim,pk] fixed minor pk bugs and trap codes
Diffstat (limited to 'pk/fp.c')
-rw-r--r--pk/fp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/fp.c b/pk/fp.c
index 153ba09..2d369d6 100644
--- a/pk/fp.c
+++ b/pk/fp.c
@@ -19,7 +19,7 @@ static inline void
validate_address(trapframe_t* tf, long addr, int size, int store)
{
if(addr & (size-1))
- handle_misaligned_ldst(tf);
+ store ? handle_misaligned_store(tf) : handle_misaligned_load(tf);
if(addr >= USER_MEM_SIZE)
store ? handle_fault_store(tf) : handle_fault_load(tf);
}