aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson2013-01-16 20:41:26 +0000
committerKarl Palsson2013-01-16 20:41:26 +0000
commit22d8891feed1339ed6db3d524a9a7de9cda48c99 (patch)
treede71990de6f8973b7fee2749d2400879590c5996
parent20bfcaeb1c773012f1c41e004915b72f6abba352 (diff)
Remove assembly forcing stack.
Fixes #51 There should be no reason for manually trying to load the stack. Cortex devices can be programmed with only C, and any code that needed this would indicate broken vectors.
-rw-r--r--lib/cm3/vector.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/cm3/vector.c b/lib/cm3/vector.c
index f7b0f5c..3cfd4f5 100644
--- a/lib/cm3/vector.c
+++ b/lib/cm3/vector.c
@@ -67,8 +67,6 @@ void WEAK __attribute__ ((naked)) reset_handler(void)
{
volatile unsigned *src, *dest;
- __asm__("MSR msp, %0" : : "r"(&_stack));
-
for (src = &_data_loadaddr, dest = &_data; dest < &_edata; src++, dest++)
*dest = *src;