From d27a58798955bad789da8f89acadf8c4341c2ecb Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 22 Mar 2013 14:49:21 +0000 Subject: 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 --- nuttx/arch/arm/src/stm32/stm32_start.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'nuttx/arch/arm/src/stm32/stm32_start.c') 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 */ -- cgit v1.2.3