aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--pk/console.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 7df0b61..81492de 100644
--- a/configure.ac
+++ b/configure.ac
@@ -91,7 +91,7 @@ AS_IF([test "x$enable_print_device_tree" = "xyes"], [
AC_DEFINE([PK_PRINT_DEVICE_TREE],,[Define if the DTS is to be displayed])
])
-CFLAGS="-Wall -Werror -D__NO_INLINE__ -mcmodel=medany -O2 -std=gnu99 -Wno-unused -Wno-attributes -Wno-uninitialized -fno-delete-null-pointer-checks -fno-PIE"
+CFLAGS="-Wall -Werror -D__NO_INLINE__ -mcmodel=medany -O2 -std=gnu99 -Wno-unused -Wno-attributes -fno-delete-null-pointer-checks -fno-PIE"
LDFLAGS="$LDFLAGS -Wl,--build-id=none"
AC_SUBST(CFLAGS)
diff --git a/pk/console.c b/pk/console.c
index 475a93b..cf40a0a 100644
--- a/pk/console.c
+++ b/pk/console.c
@@ -64,6 +64,5 @@ void do_panic(const char* s, ...)
void kassert_fail(const char* s)
{
- register uintptr_t ra asm ("ra");
- do_panic("assertion failed @ %p: %s\n", ra, s);
+ do_panic("assertion failed @ %p: %s\n", __builtin_return_address(0), s);
}