[Skiboot] [PATCH 10/10] chiptod: Change aborts to asserts

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


... so we get good debug data on TI

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

diff --git a/hw/chiptod.c b/hw/chiptod.c
index 1e3448b..899fcf1 100644
--- a/hw/chiptod.c
+++ b/hw/chiptod.c
@@ -809,7 +809,7 @@ void chiptod_init(u32 master_cpu)
 	if (!chiptod_probe(master_cpu)) {
 		prerror("CHIPTOD: Failed ChipTOD detection !\n");
 		op_display(OP_FATAL, OP_MOD_CHIPTOD, 0);
-		abort();
+		assert(false);
 	}
 
 	op_display(OP_LOG, OP_MOD_CHIPTOD, 1);
@@ -827,7 +827,7 @@ void chiptod_init(u32 master_cpu)
 	cpu_wait_job(cpu_queue_job(cpu0, chiptod_sync_master, &sres), true);
 	if (!sres) {
 		op_display(OP_FATAL, OP_MOD_CHIPTOD, 2);
-		abort();
+		assert(sres);
 	}
 
 	op_display(OP_LOG, OP_MOD_CHIPTOD, 2);



More information about the Skiboot mailing list