summaryrefslogtreecommitdiff
path: root/board/eNET/eNET.c
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2009-08-23 12:59:46 +1000
committerTom Rix <Tom.Rix@windriver.com>2009-10-03 09:04:09 -0500
commitac28dcfe895e5fbfc51347e9e826c8f56796e551 (patch)
treef5c63c835dff2b39672fab504f56c79fadd731d2 /board/eNET/eNET.c
parent8b576fa2c43a3a9e775452c2d4ae2766f6d089bf (diff)
i386: Change inline asm global symbols to local
gcc 4.3.2 optimiser creates multiple copies of inline asm (who knows why) Remove use of global names for labels to prevent 'symbol already defined' errors Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'board/eNET/eNET.c')
-rw-r--r--board/eNET/eNET.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c
index 57dd6359e7..27dabaa965 100644
--- a/board/eNET/eNET.c
+++ b/board/eNET/eNET.c
@@ -51,9 +51,9 @@ void init_sc520_enet (void)
/* wait at least one millisecond */
asm("movl $0x2000,%%ecx\n"
- "wait_loop: pushl %%ecx\n"
+ "0: pushl %%ecx\n"
"popl %%ecx\n"
- "loop wait_loop\n": : : "ecx");
+ "loop 0b\n": : : "ecx");
/* turn on the SDRAM write buffer */
write_mmcr_byte(SC520_DBCTL, 0x11);