From 22d8891feed1339ed6db3d524a9a7de9cda48c99 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 16 Jan 2013 20:41:26 +0000 Subject: 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. --- lib/cm3/vector.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3