• Soby Mathew's avatar
    Rework the crash reporting in BL3-1 to use less stack · 626ed510
    Soby Mathew authored
    This patch reworks the crash reporting mechanism to further
    optimise the stack and code size. The reporting makes use
    of assembly console functions to avoid calling C Runtime
    to report the CPU state. The crash buffer requirement is
    reduced to 64 bytes with this implementation. The crash
    buffer is now part of per-cpu data which makes retrieving
    the crash buffer trivial.
    
    Also now panic() will use crash reporting if
    invoked from BL3-1.
    
    Fixes ARM-software/tf-issues#199
    
    Change-Id: I79d27a4524583d723483165dc40801f45e627da5
    626ed510
crash_reporting.S 10.8 KB