summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/sys/h8300hms/crt0.S4
1 files changed, 2 insertions, 2 deletions
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