aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/start.S
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-11-15 08:39:01 -0500
committerMarti Bolivar <mbolivar@leaflabs.com>2012-04-11 16:52:17 -0400
commitb81655333f0a7378eec66cfef668a7282d7a4b17 (patch)
tree35d49387c3fb32455e832c3730f36e9b18a13007 /wirish/start.S
parent4b245f8744ae7abc8d77a9b90f273106eee3541f (diff)
downloadlibrambutan-b81655333f0a7378eec66cfef668a7282d7a4b17.tar.gz
librambutan-b81655333f0a7378eec66cfef668a7282d7a4b17.zip
Remove "CS3" prefix from libmaple symbol names.
We're no longer even marginally compatible with CS3, so it's inappropriate to use that prefix in our names. Rename: __cs3_stm32_vector_table -> __stm32_vector_table. __cs3_stack -> __msp_init __cs3_reset -> __exc_reset __cs3_start_c -> start_c Also add an MIT license header and assert LeafLabs copyright over wirish/start.S and wirish/start_c.c. These files are modified from the original CodeSourcery versions, which were distributed under a license that permits modifications to be distributed under a different copyright and licensing terms than the originals. Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'wirish/start.S')
-rw-r--r--wirish/start.S34
1 files changed, 32 insertions, 2 deletions
diff --git a/wirish/start.S b/wirish/start.S
index 4d1d405..cb87d62 100644
--- a/wirish/start.S
+++ b/wirish/start.S
@@ -1,4 +1,34 @@
+/******************************************************************************
+ * The MIT License
+ *
+ * Copyright (c) 2011 LeafLabs, LLC.
+ *
+ * Permission is hereby granted, free of charge, to any person
+ * obtaining a copy of this software and associated documentation
+ * files (the "Software"), to deal in the Software without
+ * restriction, including without limitation the rights to use, copy,
+ * modify, merge, publish, distribute, sublicense, and/or sell copies
+ * of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *****************************************************************************/
+
/*
+ * This file is a modified version of a file obtained from
+ * CodeSourcery Inc. (now part of Mentor Graphics Corp.), in which the
+ * following text appeared:
+ *
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
* that existing copyright notices are retained in all copies and that this
@@ -18,9 +48,9 @@
.type _start, %function
_start:
.fnstart
- ldr r1,=__cs3_stack
+ ldr r1,=__msp_init
mov sp,r1
- ldr r1,=__cs3_start_c
+ ldr r1,=start_c
bx r1
.pool
.cantunwind