From 4ba9aab7798ea22fd5b5a9e33bef656a9b5e07e9 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 30 Aug 2000 22:17:17 +0000 Subject: [PATCH] 2000-08-30 Kazu Hirata * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size. --- newlib/ChangeLog | 4 ++++ newlib/libc/sys/h8300hms/crt0.S | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 368d2bcc0..08ed4c207 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2000-08-30 Kazu Hirata + + * libc/sys/h8300hms/crt0.S: Optimize for both speed and code size. + 2000-08-30 Werner Almesberger * libc/posix/execve.c: included unistd.h for "_execve" prototype. diff --git a/newlib/libc/sys/h8300hms/crt0.S b/newlib/libc/sys/h8300hms/crt0.S index 94a4e2948..13d907508 100644 --- a/newlib/libc/sys/h8300hms/crt0.S +++ b/newlib/libc/sys/h8300hms/crt0.S @@ -8,7 +8,7 @@ _start: mov.w #_stack,sp mov.w #_edata,r0 mov.w #_end,r1 - mov.w #0,r2 + sub.w r2,r2 .loop: mov.w r2,@r0 adds #2,r0 cmp r1,r0 @@ -31,7 +31,7 @@ _start: mov.l #_stack,sp mov.l #_edata,er0 mov.l #_end,er1 - mov.w #0,r2 ; not sure about alignment requirements + sub.w r2,r2 ; not sure about alignment requirements .loop: mov.w r2,@er0 ; playing it safe for now adds #2,er0 cmp.l er1,er0 @@ -54,7 +54,7 @@ _start: mov.l #_stack,sp mov.l #_edata,er0 mov.l #_end,er1 - mov.w #0,r2 ; not sure about alignment requirements + sub.w r2,r2 ; not sure about alignment requirements .loop: mov.w r2,@er0 ; playing it safe for now adds #2,er0 cmp.l er1,er0