Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/arch/earm Thumbify
details: https://anonhg.NetBSD.org/src/rev/6bed676bd8ee
branches: trunk
changeset: 789508:6bed676bd8ee
user: matt <matt%NetBSD.org@localhost>
date: Wed Aug 21 03:03:02 2013 +0000
description:
Thumbify
diffstat:
lib/csu/arch/earm/crt0.S | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 7563cd09b78d -r 6bed676bd8ee lib/csu/arch/earm/crt0.S
--- a/lib/csu/arch/earm/crt0.S Wed Aug 21 03:00:56 2013 +0000
+++ b/lib/csu/arch/earm/crt0.S Wed Aug 21 03:03:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crt0.S,v 1.1 2012/08/13 02:49:04 matt Exp $ */
+/* $NetBSD: crt0.S,v 1.2 2013/08/21 03:03:02 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <arm/asm.h>
-RCSID("$NetBSD: crt0.S,v 1.1 2012/08/13 02:49:04 matt Exp $")
+RCSID("$NetBSD: crt0.S,v 1.2 2013/08/21 03:03:02 matt Exp $")
STRONG_ALIAS(_start,__start)
@@ -44,7 +44,14 @@
mov r2, ip /* tmp -> ps_strings */
/* Ensure the stack is properly aligned before calling C code. */
+#if !defined(__thumb__) || defined(_ARM_ARCH_T2)
bic sp, sp, #7
+#else
+ movs r6, #7
+ mov r7, sp
+ bics r7, r7, r6
+ mov sp, r7
+#endif
/*
* void ___start(void (*cleanup)(void),
Home |
Main Index |
Thread Index |
Old Index