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/libbsp/sparc/shared/start/start.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/libbsp/sparc/shared/start/start.S')
-rw-r--r-- | c/src/lib/libbsp/sparc/shared/start/start.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/start/start.S b/c/src/lib/libbsp/sparc/shared/start/start.S index 6a9faaff5d..d9044b2130 100644 --- a/c/src/lib/libbsp/sparc/shared/start/start.S +++ b/c/src/lib/libbsp/sparc/shared/start/start.S @@ -74,7 +74,7 @@ #define SOFT_TRAP BAD_TRAP - .seg "text" + .section ".text" PUBLIC(start) .global start, __bsp_mem_init @@ -352,7 +352,7 @@ zerobss: bleu,a zerobss nop - mov %0, %o0 ! command line + mov %g0, %o0 ! command line call SYM(boot_card) ! does not return sub %sp, 0x60, %sp ! room for boot_card to save args |