diff options
| -rw-r--r-- | arch/avr32/boot/u-boot/head.S | 5 | ||||
| -rw-r--r-- | arch/avr32/kernel/entry-avr32b.S | 3 |
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 */ |
| 74 | stack_addr: | 74 | stack_addr: |
| 75 | .long init_thread_union | 75 | .long init_thread_union |
| 76 | panic_addr: | ||
| 77 | .long panic | ||
| 76 | 78 | ||
| 77 | no_tag_table: | 79 | no_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 | ||
| 80 | 2: .asciz "Boot loader didn't provide correct magic number\n" | 83 | 2: .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... */ |
| 402 | bad_return: | 402 | bad_return: |
| 403 | sub r12, pc, (. - 1f) | 403 | sub r12, pc, (. - 1f) |
| 404 | bral panic | 404 | lddpc pc, 2f |
| 405 | .align 2 | 405 | .align 2 |
| 406 | 1: .asciz "Return from critical exception!" | 406 | 1: .asciz "Return from critical exception!" |
| 407 | 2: .long panic | ||
| 407 | 408 | ||
| 408 | .align 1 | 409 | .align 1 |
| 409 | do_bus_error_write: | 410 | do_bus_error_write: |
