Skip to content
Snippets Groups Projects
Commit 9208d7eb authored by Thomas Chou's avatar Thomas Chou
Browse files

nios2: fix cached mode in clearing the BSS


As the generic board runs in cached mode, it should not use
"stwio" which bypass the cache.

Signed-off-by: default avatarThomas Chou <thomas@wytron.com.tw>
Reviewed-by: default avatarChin Liang See <clsee@altera.com>
parent 65af9f69
No related branches found
No related tags found
No related merge requests found
...@@ -158,7 +158,7 @@ relocate_code: ...@@ -158,7 +158,7 @@ relocate_code:
ori r6, r6, %lo(__bss_end) ori r6, r6, %lo(__bss_end)
beq r5, r6, 5f beq r5, r6, 5f
4: stwio r0, 0(r5) 4: stw r0, 0(r5)
addi r5, r5, 4 addi r5, r5, 4
bne r5, r6, 4b bne r5, r6, 4b
5: 5:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment