diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2016-02-01 13:57:25 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2016-03-14 16:41:18 +0000 |
commit | 1c3ea103d28760a04e457678bf60725ae761c28f (patch) | |
tree | f6614d5fde45a1ffc456eb200239353512dee99f /bl31 | |
parent | 195d29f399759813cd42ea2b8d3133ba426e2ba2 (diff) | |
download | trusted-firmware-a-1c3ea103d28760a04e457678bf60725ae761c28f.tar.gz |
Remove all non-configurable dead loops
Added a new platform porting function plat_panic_handler, to allow
platforms to handle unexpected error situations. It must be
implemented in assembly as it may be called before the C environment
is initialized. A default implementation is provided, which simply
spins.
Corrected all dead loops in generic code to call this function
instead. This includes the dead loop that occurs at the end of the
call to panic().
All unnecesary wfis from bl32/tsp/aarch64/tsp_exceptions.S have
been removed.
Change-Id: I67cb85f6112fa8e77bd62f5718efcef4173d8134
Diffstat (limited to 'bl31')
-rw-r--r-- | bl31/aarch64/crash_reporting.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bl31/aarch64/crash_reporting.S b/bl31/aarch64/crash_reporting.S index 1d1e60d807..ff915728a1 100644 --- a/bl31/aarch64/crash_reporting.S +++ b/bl31/aarch64/crash_reporting.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -351,17 +351,17 @@ func do_crash_reporting plat_print_interconnect_regs /* Done reporting */ - b crash_panic + bl plat_panic_handler endfunc do_crash_reporting #else /* CRASH_REPORTING */ func report_unhandled_exception report_unhandled_interrupt: - b crash_panic + bl plat_panic_handler endfunc report_unhandled_exception #endif /* CRASH_REPORTING */ func crash_panic - b crash_panic -endfunc crash_panic
\ No newline at end of file + bl plat_panic_handler +endfunc crash_panic |