From 863968599c6a555efe580f9a354ecec24dd00159 Mon Sep 17 00:00:00 2001 From: Jacob Hansen Date: Fri, 28 Oct 2016 16:05:56 +0200 Subject: 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 --- c/src/lib/libcpu/sparc/access/access.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'c/src/lib/libcpu/sparc/access/access.S') 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 .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): -- cgit v1.2.3