mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-10 21:26:19 +09:00
2e2ed3f4ff
Newer gcc versions will sometimes use a Preg when "r" constraints, but that'll fail if we use an Ireg in the assignment. So force the code to always use a Dreg. This also fixes early boot crashes for older Blackfin parts when compiled with gcc-4.5. This version ends up selecting the same register for the input and output variables which corrupts the output assignment triggering an exception. P2 = 0xffe02008; /* EVT2 */ R0 = RETS; CALL 1f; RTN; 1: P2 = RETS; <-- BAD RETS = R0; [P2] = P2; <-- BAD Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> |
||
---|---|---|
.. | ||
.gitignore | ||
bootrom-asm-offsets.awk | ||
bootrom-asm-offsets.c.in | ||
cache.S | ||
cpu.c | ||
cpu.h | ||
gpio.c | ||
init.lds.S | ||
init.S | ||
initcode.c | ||
initcode.h | ||
interrupt.S | ||
interrupts.c | ||
jtag-console.c | ||
Makefile | ||
os_log.c | ||
reset.c | ||
serial.c | ||
serial.h | ||
serial1.h | ||
serial4.h | ||
start.S | ||
traps.c | ||
u-boot.lds | ||
watchdog.c |