From 0302dfe5099eeec04eb8457af04566bb36833408 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 31 Jul 2003 16:21:20 +0000 Subject: Allocate 4 slots on stack before calling main, in case it saves its argument registers. Remove reference to deleted v850ea port. Do not use -mv850 when building for v850e target. This prevents the ctbp system register from being initialised. --- newlib/libc/sys/sysnecv850/crt0.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'newlib/libc/sys/sysnecv850/crt0.S') diff --git a/newlib/libc/sys/sysnecv850/crt0.S b/newlib/libc/sys/sysnecv850/crt0.S index e988bad46..e006871b3 100644 --- a/newlib/libc/sys/sysnecv850/crt0.S +++ b/newlib/libc/sys/sysnecv850/crt0.S @@ -5,7 +5,7 @@ _start: -#if defined __v850e__ || defined __v850ea__ +#if defined __v850e__ movea 255, r0, r20 mov 65535, r21 @@ -23,7 +23,7 @@ _start: bl .L0 .L1: jarl ___main, r31 - addi -12, sp, sp + addi -16, sp, sp mov 0, r6 mov 0, r7 mov 0, r8 @@ -53,7 +53,7 @@ _start: bl .L0 .L1: jarl ___main, r31 - addi -12, sp, sp + addi -16, sp, sp mov 0, r6 mov 0, r7 mov 0, r8 -- cgit v1.2.3