aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/avr32/boot/u-boot/head.S5
-rw-r--r--arch/avr32/kernel/entry-avr32b.S3
2 files changed, 6 insertions, 2 deletions
diff --git a/arch/avr32/boot/u-boot/head.S b/arch/avr32/boot/u-boot/head.S
index d36d865308df..2ffc298f061b 100644
--- a/arch/avr32/boot/u-boot/head.S
+++ b/arch/avr32/boot/u-boot/head.S
@@ -73,8 +73,11 @@ init_sr:
73 .long 0x007f0000 /* Supervisor mode, everything masked */ 73 .long 0x007f0000 /* Supervisor mode, everything masked */
74stack_addr: 74stack_addr:
75 .long init_thread_union 75 .long init_thread_union
76panic_addr:
77 .long panic
76 78
77no_tag_table: 79no_tag_table:
78 sub r12, pc, (. - 2f) 80 sub r12, pc, (. - 2f)
79 bral panic 81 /* branch to panic() which can be far away with that construct */
82 lddpc pc, panic_addr
802: .asciz "Boot loader didn't provide correct magic number\n" 832: .asciz "Boot loader didn't provide correct magic number\n"
diff --git a/arch/avr32/kernel/entry-avr32b.S b/arch/avr32/kernel/entry-avr32b.S
index 9899d3cc6f03..7301f4806bbe 100644
--- a/arch/avr32/kernel/entry-avr32b.S
+++ b/arch/avr32/kernel/entry-avr32b.S
@@ -401,9 +401,10 @@ handle_critical:
401 /* We should never get here... */ 401 /* We should never get here... */
402bad_return: 402bad_return:
403 sub r12, pc, (. - 1f) 403 sub r12, pc, (. - 1f)
404 bral panic 404 lddpc pc, 2f
405 .align 2 405 .align 2
4061: .asciz "Return from critical exception!" 4061: .asciz "Return from critical exception!"
4072: .long panic
407 408
408 .align 1 409 .align 1
409do_bus_error_write: 410do_bus_error_write: