[klibc] m68k fixes
crt0.S: __libc_init, not ___libc_init
sysstub.ph: use move.l not moveq
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
diff --git a/usr/klibc/arch/m68k/crt0.S b/usr/klibc/arch/m68k/crt0.S
index 6eb3b51..0a8aadb 100644
--- a/usr/klibc/arch/m68k/crt0.S
+++ b/usr/klibc/arch/m68k/crt0.S
@@ -22,6 +22,6 @@
# Push ELF argument pointer on the stack
move.l %d0, -(%a7)
- jbsr ___libc_init
+ jbsr __libc_init
.size _start, .-_start
diff --git a/usr/klibc/arch/m68k/sysstub.ph b/usr/klibc/arch/m68k/sysstub.ph
index 5f7b329..78c239d 100644
--- a/usr/klibc/arch/m68k/sysstub.ph
+++ b/usr/klibc/arch/m68k/sysstub.ph
@@ -17,7 +17,7 @@
$stype = 'common' if ( $stype eq '' );
- print OUT "\tmoveq\t# __NR_${sname}, %d0\n";
+ print OUT "\tmove.l\t# __NR_${sname}, %d0\n";
print OUT "\tbr\t__syscall_$stype\n";
print OUT "\t.size ${fname},.-${fname}\n";
close(OUT);