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 | |
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')
-rw-r--r-- | c/src/lib/libcpu/sparc/access/access.S | 6 | ||||
-rw-r--r-- | c/src/lib/libcpu/sparc/reg_win/window.S | 2 | ||||
-rw-r--r-- | c/src/lib/libcpu/sparc/syscall/syscall.S | 2 |
3 files changed, 5 insertions, 5 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): diff --git a/c/src/lib/libcpu/sparc/reg_win/window.S b/c/src/lib/libcpu/sparc/reg_win/window.S index f57fbe18a8..b8745593f5 100644 --- a/c/src/lib/libcpu/sparc/reg_win/window.S +++ b/c/src/lib/libcpu/sparc/reg_win/window.S @@ -23,7 +23,7 @@ #include <rtems/asm.h> - .seg "text" + .section ".text" /* * Window overflow trap handler. * diff --git a/c/src/lib/libcpu/sparc/syscall/syscall.S b/c/src/lib/libcpu/sparc/syscall/syscall.S index d00aa03876..d5e1f43403 100644 --- a/c/src/lib/libcpu/sparc/syscall/syscall.S +++ b/c/src/lib/libcpu/sparc/syscall/syscall.S @@ -19,7 +19,7 @@ #include <rtems/asm.h> #include "syscall.h" - .seg "text" + .section ".text" /* * system call - halt * |