ARMV7 and Google/Snow: Add exception support code to the ramstage
commitb21eaa74a656fa33f943f76ea0c53ca8374760f6
authorRonald G. Minnich <rminnich@gmail.com>
Thu, 7 Mar 2013 23:23:45 +0000 (7 15:23 -0800)
committerRonald G. Minnich <rminnich@gmail.com>
Fri, 8 Mar 2013 21:03:37 +0000 (8 22:03 +0100)
tree0271598a31c34c9c36f236fef4760b3932380c08
parentc2f2bd0a6d00a7f8df4005f148f67373db6d26d6
ARMV7 and Google/Snow: Add exception support code to the ramstage

This is previously used exception code from libpayload.
On startup it installs and then tests an exception handler.
The test is an unaligned memory operation.

Yes, we've seen what might be exceptions in the ramstage, and
it makes sense to handle them. This code is identical in structure
and operation to the previously committed payload exception handler,
though we reserve the right to change it as circumstances require.

The remaining question is whether we need it in romstage.

Change-Id: I24484686c33c9757af8ba171ebae9773828fb69d
Signed-off-by: Gabe Black <gabeblack@google.com>
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/2614
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
src/arch/armv7/Makefile.inc
src/arch/armv7/exception.c [new file with mode: 0644]
src/arch/armv7/exception_asm.S [new file with mode: 0644]
src/arch/armv7/include/arch/exception.h [new file with mode: 0644]
src/mainboard/google/snow/ramstage.c