diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-11 17:51:42 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-11 17:51:42 +0000 |
commit | 3578c60ae17a31fef6486ba5c3a2f97b899fb243 (patch) | |
tree | 69156c78a6928e337491e60e93b707b1bf362c97 /nuttx/arch/arm/src/lpc17xx/lpc17_start.c | |
parent | 065661cbab0d8ca6f3739c02d0536de3de362402 (diff) | |
download | px4-nuttx-3578c60ae17a31fef6486ba5c3a2f97b899fb243.tar.gz px4-nuttx-3578c60ae17a31fef6486ba5c3a2f97b899fb243.tar.bz2 px4-nuttx-3578c60ae17a31fef6486ba5c3a2f97b899fb243.zip |
Add MPU support for the LPC17xx family
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5731 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/lpc17xx/lpc17_start.c')
-rw-r--r-- | nuttx/arch/arm/src/lpc17xx/lpc17_start.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/lpc17xx/lpc17_start.c b/nuttx/arch/arm/src/lpc17xx/lpc17_start.c index e13abe15c..e3e4013d0 100644 --- a/nuttx/arch/arm/src/lpc17xx/lpc17_start.c +++ b/nuttx/arch/arm/src/lpc17xx/lpc17_start.c @@ -2,7 +2,7 @@ * arch/arm/src/lpc17xx/lpc17_start.c * arch/arm/src/chip/lpc17_start.c * - * Copyright (C) 2010, 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2010, 2012-2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -52,6 +52,7 @@ #include "lpc17_clockconfig.h" #include "lpc17_lowputc.h" +#include "lpc17_userspace.h" #ifdef CONFIG_ARCH_FPU # include "nvic.h" @@ -230,10 +231,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 + * segements. + */ + +#ifdef CONFIG_NUTTX_KERNEL + lpc17_userspace(); + showprogress('E'); +#endif + /* Initialize onboard resources */ lpc17_boardinitialize(); - showprogress('E'); + showprogress('F'); /* Then start NuttX */ |