u-boot/arch/nios2/cpu
Thomas Chou 7a6a7d10e6 nios2: fix out of reach case for do_reset
There is a limitation (or bug?) of nios2 toolchain. The nios2 gcc
didn't generate correct code when the reset vector is passed as a
constant. It just generated a direct "call", which was wrong when
the reset vector was not located in the same 256MB span as u-boot.

The "Nios II Processor Reference Handbook" said,
"call can transfer execution anywhere within the 256 MByte range
determined by PC31..28. The Nios II GNU linker does not automatically
handle cases in which the address is out of this range."

So we have to use registered "callr" instruction to do the job.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Signed-off-by: Scott McNutt <smcnutt@psyent.com>
2010-08-19 22:15:49 -04:00
..
config.mk nios2: Move cpu/nios2/* to arch/nios2/cpu/* 2010-04-13 09:13:27 +02:00
cpu.c nios2: fix out of reach case for do_reset 2010-08-19 22:15:49 -04:00
epcs.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
exceptions.S nios2: Move cpu/nios2/* to arch/nios2/cpu/* 2010-04-13 09:13:27 +02:00
interrupts.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
Makefile nios2: Move cpu/nios2/* to arch/nios2/cpu/* 2010-04-13 09:13:27 +02:00
start.S nios2: fix r15 issue for gcc4 2010-05-28 10:56:03 -04:00
sysid.c Make sure that argv[] argument pointers are not modified. 2010-07-04 23:55:42 +02:00
traps.c nios2: Move cpu/nios2/* to arch/nios2/cpu/* 2010-04-13 09:13:27 +02:00
u-boot.lds nios2: Move individual board linker scripts to common script in cpu tree. 2010-04-16 16:12:39 -04:00