diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/arm/shared/abort/abort.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/c/src/lib/libbsp/arm/shared/abort/abort.c b/c/src/lib/libbsp/arm/shared/abort/abort.c index 3d78a5cd94..3bd704c32e 100644 --- a/c/src/lib/libbsp/arm/shared/abort/abort.c +++ b/c/src/lib/libbsp/arm/shared/abort/abort.c @@ -9,9 +9,9 @@ * * Copyright (c) 2002 Advent Networks, Inc * Jay Monkman <jmonkman@adventnetworks.com> - * + * * If you want a small footprint RTEMS, pls use simple_abort.c - * + * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. @@ -58,7 +58,7 @@ char *_print_full_context_mode2txt[0x20]={ [0xb]="undef", /* Undefined */ [0xf]="system" /* System */ }; - + void _print_full_context(uint32_t spsr) { @@ -94,13 +94,13 @@ void _print_full_context(uint32_t spsr) } -/* This function is supposed to figure out what caused the +/* This function is supposed to figure out what caused the * data abort, do that, then return. * * All unhandled instructions cause the system to hang. */ -void do_data_abort(uint32_t insn, uint32_t spsr, +void do_data_abort(uint32_t insn, uint32_t spsr, Context_Control *ctx) { /* Clarify, which type is correct, CPU_Exception_frame or Context_Control */ @@ -110,7 +110,7 @@ void do_data_abort(uint32_t insn, uint32_t spsr, g_data_abort_insn_list[g_data_abort_cnt & 0x3ff] = ctx->register_lr - 8; g_data_abort_cnt++; - + decode = ((insn >> 20) & 0xff); insn_type = decode & INSN_MASK; @@ -143,7 +143,7 @@ void do_data_abort(uint32_t insn, uint32_t spsr, printk("\n\nUnrecognized instruction\n"); break; } - + printk("data_abort at address 0x%x, instruction: 0x%x, spsr = 0x%x\n", ctx->register_lr - 8, insn, spsr); |