summaryrefslogtreecommitdiff
path: root/common/cmd_ext2.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-07-31 09:38:56 (GMT)
committerSonic Zhang <sonic.zhang@analog.com>2013-05-13 07:47:24 (GMT)
commit2e2ed3f4ff5f21a5c39394c55d361e826238ce2d (patch)
tree558ea823e0acbeb2005fbd996f5df582c8e36a7b /common/cmd_ext2.c
parente0ae433e9283728ce3f25e0d3794291c11e48f5e (diff)
downloadu-boot-2e2ed3f4ff5f21a5c39394c55d361e826238ce2d.tar.xz
Blackfin: adjust asm constraints with NMI workaround
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>
Diffstat (limited to 'common/cmd_ext2.c')
0 files changed, 0 insertions, 0 deletions