summaryrefslogtreecommitdiff
path: root/kern/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/lock.c')
-rw-r--r--kern/lock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kern/lock.c b/kern/lock.c
index 2bcfa8b8..44d4448e 100644
--- a/kern/lock.c
+++ b/kern/lock.c
@@ -163,8 +163,8 @@ void simple_lock(
info->l = l;
/* XXX we want our return address, if possible */
#if defined(__i386__)
- info->ra = *((unsigned int *)&l - 1);
-#endif /* __i386__ */
+ info->ra = *((unsigned long *)&l - 1);
+#endif /* i386 */
}
boolean_t simple_lock_try(
@@ -181,8 +181,8 @@ boolean_t simple_lock_try(
info->l = l;
/* XXX we want our return address, if possible */
#if defined(__i386__)
- info->ra = *((unsigned int *)&l - 1);
-#endif /* __i386__ */
+ info->ra = *((unsigned long *)&l - 1);
+#endif /* i386 */
return TRUE;
}