]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
avr32: Use the same entry point for reset and exception handling
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Fri, 2 May 2008 13:32:57 +0000 (15:32 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Tue, 27 May 2008 13:27:30 +0000 (15:27 +0200)
commitcaf83ea888a0220f41747d0b7748fa43b4a4bd49
tree3ac20bbef11f75760e772c74b07ef99f8a466908
parent0c16eed2189a190bd5655b33c029f809a9b31128
avr32: Use the same entry point for reset and exception handling

Since the reset vector is always aligned to a very large boundary, we
can save a couple of KB worth of alignment padding by placing the
exception vectors at the same address.

Deciding which one it is is easy: If we're handling an exception, the
CPU is in Exception mode. If we're starting up after reset, the CPU is
in Supervisor mode. So this adds a very minimal overhead to the reset
path (only executed once) and the exception handling path (normally
never executed at all.)

Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
board/atmel/atngw100/u-boot.lds
board/atmel/atstk1000/u-boot.lds
cpu/at32ap/Makefile
cpu/at32ap/entry.S [deleted file]
cpu/at32ap/start.S