diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-22 14:49:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-22 14:49:21 +0000 |
commit | d27a58798955bad789da8f89acadf8c4341c2ecb (patch) | |
tree | cbe8f3e15879dec4125868437e34b7773d5ca1a7 /nuttx/arch/arm/src/stm32/stm32_start.c | |
parent | 4bfc8f39c961f54043988792cce387f36b783df2 (diff) | |
download | px4-nuttx-d27a58798955bad789da8f89acadf8c4341c2ecb.tar.gz px4-nuttx-d27a58798955bad789da8f89acadf8c4341c2ecb.tar.bz2 px4-nuttx-d27a58798955bad789da8f89acadf8c4341c2ecb.zip |
Add kernel build support to the STM32 family and to the STM32F4Discovery board
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5774 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/stm32/stm32_start.c')
-rw-r--r-- | nuttx/arch/arm/src/stm32/stm32_start.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/stm32/stm32_start.c b/nuttx/arch/arm/src/stm32/stm32_start.c index b90beeb16..a2f82f7b2 100644 --- a/nuttx/arch/arm/src/stm32/stm32_start.c +++ b/nuttx/arch/arm/src/stm32/stm32_start.c @@ -52,6 +52,7 @@ #include "stm32.h" #include "stm32_gpio.h" +#include "stm32_userspace.h" #ifdef CONFIG_ARCH_FPU # include "nvic.h" @@ -198,6 +199,7 @@ void __start(void) { *dest++ = 0; } + showprogress('B'); /* Move the intialized data section from his temporary holding spot in @@ -210,6 +212,7 @@ void __start(void) { *dest++ = *src++; } + showprogress('C'); /* Perform early serial initialization */ @@ -219,10 +222,21 @@ void __start(void) #endif showprogress('D'); + /* For the case of the separate user-/kernel-space build, perform whatever + * platform specific initialization of the user memory is required. + * Normally this just means initializing the user space .data and .bss + * segments. + */ + +#ifdef CONFIG_NUTTX_KERNEL + stm32_userspace(); + showprogress('E'); +#endif + /* Initialize onboard resources */ stm32_boardinitialize(); - showprogress('E'); + showprogress('F'); /* Then start NuttX */ |