diff options
author | Jacob Hansen <jacob.hansen@gaisler.com> | 2016-10-28 16:05:56 +0200 |
---|---|---|
committer | Daniel Hellstrom <daniel@gaisler.com> | 2017-05-14 12:32:00 +0200 |
commit | 863968599c6a555efe580f9a354ecec24dd00159 (patch) | |
tree | edb3c7801dca9b84f43cc91cf7c0d2c482e9fb65 /c/src/lib/libcpu/sparc/access/access.S | |
parent | leon, grtc: SMP support by using spin-locks (diff) | |
download | rtems-863968599c6a555efe580f9a354ecec24dd00159.tar.bz2 |
sparc: Adjust assembly to improve compability with LLVM
- All references of %0 changed to %g0
- 'call label,0' changed to 'call label'. According to the sparc
specification call does not take any registers
- '.seg "text"' changed to '.section ".text"'
- the synonym stub is replaced with stb
- the synonym stuh is replaced with sth
Diffstat (limited to 'c/src/lib/libcpu/sparc/access/access.S')
-rw-r--r-- | c/src/lib/libcpu/sparc/access/access.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libcpu/sparc/access/access.S b/c/src/lib/libcpu/sparc/access/access.S index f52e693c16..cb8693b776 100644 --- a/c/src/lib/libcpu/sparc/access/access.S +++ b/c/src/lib/libcpu/sparc/access/access.S @@ -24,7 +24,7 @@ #include <rtems/asm.h> .align 4 - .seg "text" + .section ".text" PUBLIC(_ld8) PUBLIC(_ld16) PUBLIC(_ld32) @@ -61,12 +61,12 @@ SYM(_ld64): SYM(_st8): retl - stub %o1, [%o0] + stb %o1, [%o0] SYM(_st_be16): SYM(_st16): retl - stuh %o1, [%o0] + sth %o1, [%o0] SYM(_st_be32): SYM(_st32): |