diff options
Diffstat (limited to 'payloads/libpayload/arch/armv7')
-rw-r--r-- | payloads/libpayload/arch/armv7/exception.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/armv7/exception.c b/payloads/libpayload/arch/armv7/exception.c index 8462b11fd0..5e4e23d6a6 100644 --- a/payloads/libpayload/arch/armv7/exception.c +++ b/payloads/libpayload/arch/armv7/exception.c @@ -45,11 +45,12 @@ void exception_fiq(uint32_t *); static void print_regs(uint32_t *regs) { + int i; /* Don't print the link register and stack pointer since we don't have their * actual value. They are hidden by the 'shadow' registers provided * by the trap hardware. */ - for (int i = 0; i < 16; i++) { + for (i = 0; i < 16; i++) { if (i == 15) printf("PC"); else if (i == 14) |