From 6d7ea52a26bf161e0f1d32e61f87bf0731ee3cc5 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 24 Jun 2003 18:13:35 +0000 Subject: * libc/sys/h8300hms/crt0.S (_start): Fix register sizes in call to atexit(). --- newlib/libc/sys/h8300hms/crt0.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib/libc') diff --git a/newlib/libc/sys/h8300hms/crt0.S b/newlib/libc/sys/h8300hms/crt0.S index aa6bed592..8ad6ddc59 100644 --- a/newlib/libc/sys/h8300hms/crt0.S +++ b/newlib/libc/sys/h8300hms/crt0.S @@ -50,7 +50,7 @@ _start: cmp.l er1,er0 blo .Loop #ifdef __ELF__ - mov.l #__fini,r0 + mov.l #__fini,er0 jsr @_atexit #ifdef __SIMULATOR__ jsr @0xcc @@ -84,7 +84,7 @@ _start: cmp.l er1,er0 blo .Loop #ifdef __ELF__ - mov.l #__fini,r0 + mov.l #__fini,er0 jsr @_atexit #ifdef __SIMULATOR__ jsr @0xcc -- cgit v1.2.3