summaryrefslogtreecommitdiff
path: root/kern/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'kern/lock.c')
-rw-r--r--kern/lock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kern/lock.c b/kern/lock.c
index 0c61227..2bcfa8b 100644
--- a/kern/lock.c
+++ b/kern/lock.c
@@ -162,9 +162,9 @@ void simple_lock(
info = &simple_locks_info[simple_locks_taken++];
info->l = l;
/* XXX we want our return address, if possible */
-#ifdef i386
+#if defined(__i386__)
info->ra = *((unsigned int *)&l - 1);
-#endif /* i386 */
+#endif /* __i386__ */
}
boolean_t simple_lock_try(
@@ -180,9 +180,9 @@ boolean_t simple_lock_try(
info = &simple_locks_info[simple_locks_taken++];
info->l = l;
/* XXX we want our return address, if possible */
-#ifdef i386
+#if defined(__i386__)
info->ra = *((unsigned int *)&l - 1);
-#endif /* i386 */
+#endif /* __i386__ */
return TRUE;
}
@@ -622,7 +622,7 @@ void db_show_all_slocks(void)
info = &simple_locks_info[i];
db_printf("%d: ", i);
db_printsym(info->l, DB_STGY_ANY);
-#if i386
+#if defined(__i386__)
db_printf(" locked by ");
db_printsym(info->ra, DB_STGY_PROC);
#endif