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>
Showing
- board/atmel/atngw100/u-boot.lds 1 addition, 0 deletionsboard/atmel/atngw100/u-boot.lds
- board/atmel/atstk1000/u-boot.lds 1 addition, 0 deletionsboard/atmel/atstk1000/u-boot.lds
- cpu/at32ap/Makefile 0 additions, 1 deletioncpu/at32ap/Makefile
- cpu/at32ap/entry.S 0 additions, 64 deletionscpu/at32ap/entry.S
- cpu/at32ap/start.S 120 additions, 9 deletionscpu/at32ap/start.S
cpu/at32ap/entry.S
deleted
100644 → 0
Please register or sign in to comment