Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/arch/sh3 Since it's in a separate file now, we canno...



details:   https://anonhg.NetBSD.org/src/rev/7c02eb967ff7
branches:  trunk
changeset: 773255:7c02eb967ff7
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Jan 29 23:27:24 2012 +0000

description:
Since it's in a separate file now, we cannot use direct branch to label.

diffstat:

 lib/csu/arch/sh3/crt0.S |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r a086c36d5bb9 -r 7c02eb967ff7 lib/csu/arch/sh3/crt0.S
--- a/lib/csu/arch/sh3/crt0.S   Sun Jan 29 22:55:40 2012 +0000
+++ b/lib/csu/arch/sh3/crt0.S   Sun Jan 29 23:27:24 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.S,v 1.2 2012/01/28 12:21:13 uwe Exp $ */
+/* $NetBSD: crt0.S,v 1.3 2012/01/29 23:27:24 uwe Exp $ */
 
 /*
  * Copyright (c) 1998 Christos Zoulas
@@ -37,7 +37,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: crt0.S,v 1.2 2012/01/28 12:21:13 uwe Exp $")
+RCSID("$NetBSD: crt0.S,v 1.3 2012/01/29 23:27:24 uwe Exp $")
 
 STRONG_ALIAS(_start,__start)
 
@@ -48,6 +48,10 @@
  * written in C.
  */
 _ENTRY(__start)
+       mov.l   .L___start, r0
        mov.l   r9, @-sp
-       bra     ___start
+       braf    r0
         mov.l  r8, @-sp
+
+       .p2align 2
+.L___start:    .long   _C_LABEL(___start)



Home | Main Index | Thread Index | Old Index