[Skiboot] [PATCH 05/10] init: Change aborts to asserts

Ananth N Mavinakayanahalli ananth at in.ibm.com
Wed Feb 11 02:15:12 AEDT 2015


... so we get good debug data on TI

Signed-off-by: Ananth N Mavinakayanahalli <ananth at in.ibm.com>
---
 core/init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/init.c b/core/init.c
index 0b29e2b..d2b2403 100644
--- a/core/init.c
+++ b/core/init.c
@@ -374,7 +374,7 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
 	/* Load kernel LID */
 	if (!load_kernel()) {
 		op_display(OP_FATAL, OP_MOD_INIT, 1);
-		abort();
+		assert(false);
 	}
 
 	load_initramfs();
@@ -407,7 +407,7 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
 	fdt = create_dtb(dt_root);
 	if (!fdt) {
 		op_display(OP_FATAL, OP_MOD_INIT, 2);
-		abort();
+		assert(fdt);
 	}
 
 	op_display(OP_LOG, OP_MOD_INIT, 0x000C);



More information about the Skiboot mailing list