summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHeiko Schocher <hs@pollux.denx.de>2006-04-20 12:38:41 +0200
committerHeiko Schocher <hs@pollux.denx.de>2006-04-20 12:38:41 +0200
commit60e270a4903b3379d6859418d99aeef1d0d0cdff (patch)
tree48a033782d7f641ffd75f2be076da5b8d513254e /examples
parent9acb626fc145e7327f94fd77f927dce08dd978a8 (diff)
Fix I/O Macros and mini-app stubs for Nios-II
Patch by Scott McNutt 11, Aug 2005 -Fix asm/io.h macros -Eliminate use of CACHE_BYPASS in cpu code -Eliminate assembler warnings -Fix mini-app stubs and force no small data
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile2
-rw-r--r--examples/stubs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index fee26741d07..a342d75062a 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -42,7 +42,7 @@ LOAD_ADDR = 0x00800000 -L $(gcclibdir)/m32 -T nios.lds
endif
ifeq ($(ARCH),nios2)
-LOAD_ADDR = 0x00800000 -L $(gcclibdir) -T nios2.lds
+LOAD_ADDR = 0x02000000 -L $(gcclibdir) -T nios2.lds
endif
ifeq ($(ARCH),m68k)
diff --git a/examples/stubs.c b/examples/stubs.c
index 250a9af6e56..1caa5757479 100644
--- a/examples/stubs.c
+++ b/examples/stubs.c
@@ -92,7 +92,7 @@ gd_t *global_data;
#x ":\n" \
" movhi r8, %%hi(%0)\n" \
" ori r8, r0, %%lo(%0)\n" \
-" add r8, r0, r15\n" \
+" add r8, r8, r15\n" \
" ldw r8, 0(r8)\n" \
" ldw r8, %1(r8)\n" \
" jmp r8\n" \