From e3ff0689bb071759493c670e0110dd1cee3ff877 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 29 Aug 2014 14:47:22 -0600 Subject: [PATCH] Rename CONFIG_NUTTX_KERNEL to CONFIG_BUILD_PROTECTED; Partially integrate new CONFIG_BUILD_KERNEL --- Documentation/NuttxPortingGuide.html | 23 +++---- Kconfig | 67 ++++++++++++++----- Makefile.unix | 16 ++--- Makefile.win | 16 ++--- arch/Kconfig | 36 ++++++++-- arch/arm/Kconfig | 25 ++++--- arch/arm/include/armv6-m/irq.h | 6 +- arch/arm/include/armv7-a/irq.h | 2 +- arch/arm/include/armv7-m/irq.h | 4 +- arch/arm/include/armv7-m/irq_lazyfpu.h | 2 +- arch/arm/src/a1x/a1x_boot.c | 10 --- arch/arm/src/arm/up_initialstate.c | 2 +- arch/arm/src/armv6-m/svcall.h | 8 +-- arch/arm/src/armv6-m/up_assert.c | 2 +- arch/arm/src/armv6-m/up_exception.S | 8 +-- arch/arm/src/armv6-m/up_hardfault.c | 2 +- arch/arm/src/armv6-m/up_initialstate.c | 4 +- arch/arm/src/armv6-m/up_schedulesigaction.c | 8 +-- arch/arm/src/armv6-m/up_sigdeliver.c | 2 +- arch/arm/src/armv6-m/up_signal_handler.S | 4 +- arch/arm/src/armv6-m/up_svcall.c | 12 ++-- arch/arm/src/armv7-a/arm_initialstate.c | 2 +- arch/arm/src/armv7-a/arm_syscall.c | 16 ++--- arch/arm/src/armv7-a/svcall.h | 8 +-- arch/arm/src/armv7-m/svcall.h | 8 +-- arch/arm/src/armv7-m/up_exception.S | 4 +- arch/arm/src/armv7-m/up_hardfault.c | 2 +- arch/arm/src/armv7-m/up_initialstate.c | 6 +- arch/arm/src/armv7-m/up_schedulesigaction.c | 8 +-- arch/arm/src/armv7-m/up_sigdeliver.c | 2 +- arch/arm/src/armv7-m/up_signal_handler.S | 4 +- arch/arm/src/armv7-m/up_svcall.c | 8 +-- arch/arm/src/common/up_allocateheap.c | 23 ++++--- arch/arm/src/common/up_createstack.c | 20 ++++-- arch/arm/src/common/up_pthread_start.c | 8 ++- arch/arm/src/common/up_releasestack.c | 23 +++++-- arch/arm/src/common/up_signal_dispatch.c | 8 ++- arch/arm/src/common/up_task_start.c | 6 +- arch/arm/src/dm320/dm320_allocateheap.c | 2 +- arch/arm/src/imx/imx_allocateheap.c | 2 +- arch/arm/src/kinetis/Make.defs | 4 +- arch/arm/src/kinetis/kinetis_allocateheap.c | 8 +-- arch/arm/src/kinetis/kinetis_mpuinit.c | 4 +- arch/arm/src/kinetis/kinetis_mpuinit.h | 4 +- arch/arm/src/kinetis/kinetis_start.c | 2 +- arch/arm/src/kinetis/kinetis_userspace.c | 4 +- arch/arm/src/kinetis/kinetis_userspace.h | 2 +- arch/arm/src/kinetis/kinetis_vectors.S | 12 ++-- arch/arm/src/kl/Make.defs | 4 +- arch/arm/src/kl/kl_start.c | 2 +- arch/arm/src/kl/kl_userspace.c | 4 +- arch/arm/src/kl/kl_userspace.h | 2 +- arch/arm/src/lpc17xx/Make.defs | 4 +- arch/arm/src/lpc17xx/lpc17_allocateheap.c | 10 +-- arch/arm/src/lpc17xx/lpc17_mpuinit.c | 4 +- arch/arm/src/lpc17xx/lpc17_mpuinit.h | 4 +- arch/arm/src/lpc17xx/lpc17_start.c | 2 +- arch/arm/src/lpc17xx/lpc17_userspace.c | 4 +- arch/arm/src/lpc17xx/lpc17_userspace.h | 2 +- arch/arm/src/lpc17xx/lpc17_vectors.S | 12 ++-- arch/arm/src/lpc31xx/lpc31_allocateheap.c | 2 +- arch/arm/src/lpc43xx/Make.defs | 4 +- arch/arm/src/lpc43xx/lpc43_allocateheap.c | 2 +- arch/arm/src/lpc43xx/lpc43_mpuinit.c | 4 +- arch/arm/src/lpc43xx/lpc43_mpuinit.h | 4 +- arch/arm/src/lpc43xx/lpc43_start.c | 2 +- arch/arm/src/lpc43xx/lpc43_userspace.c | 4 +- arch/arm/src/lpc43xx/lpc43_userspace.h | 2 +- arch/arm/src/nuc1xx/Make.defs | 4 +- arch/arm/src/nuc1xx/nuc_start.c | 2 +- arch/arm/src/nuc1xx/nuc_userspace.c | 4 +- arch/arm/src/nuc1xx/nuc_userspace.h | 2 +- arch/arm/src/sam34/Make.defs | 4 +- arch/arm/src/sam34/sam_allocateheap.c | 8 +-- arch/arm/src/sam34/sam_mpuinit.c | 4 +- arch/arm/src/sam34/sam_mpuinit.h | 4 +- arch/arm/src/sam34/sam_start.c | 2 +- arch/arm/src/sam34/sam_userspace.c | 4 +- arch/arm/src/sam34/sam_userspace.h | 2 +- arch/arm/src/sam34/sam_vectors.S | 12 ++-- arch/arm/src/sama5/sam_allocateheap.c | 21 +++--- arch/arm/src/sama5/sam_boot.c | 10 --- arch/arm/src/samd/Make.defs | 4 +- arch/arm/src/samd/sam_start.c | 2 +- arch/arm/src/samd/sam_userspace.c | 4 +- arch/arm/src/samd/sam_userspace.h | 2 +- arch/arm/src/stm32/Make.defs | 4 +- arch/arm/src/stm32/stm32_allocateheap.c | 12 ++-- arch/arm/src/stm32/stm32_mpuinit.c | 4 +- arch/arm/src/stm32/stm32_mpuinit.h | 4 +- arch/arm/src/stm32/stm32_start.c | 2 +- arch/arm/src/stm32/stm32_userspace.c | 4 +- arch/arm/src/stm32/stm32_userspace.h | 2 +- arch/arm/src/stm32/stm32_vectors.S | 12 ++-- arch/arm/src/tiva/Make.defs | 4 +- arch/arm/src/tiva/tiva_allocateheap.c | 8 +-- arch/arm/src/tiva/tiva_mpuinit.c | 4 +- arch/arm/src/tiva/tiva_mpuinit.h | 4 +- arch/arm/src/tiva/tiva_start.c | 2 +- arch/arm/src/tiva/tiva_userspace.c | 4 +- arch/arm/src/tiva/tiva_userspace.h | 2 +- arch/arm/src/tiva/tiva_vectors.S | 12 ++-- arch/avr/src/avr/up_createstack.c | 26 +------ arch/avr/src/avr32/up_createstack.c | 4 +- arch/avr/src/avr32/up_initialstate.c | 4 +- arch/avr/src/common/up_allocateheap.c | 2 +- arch/avr/src/common/up_releasestack.c | 4 +- arch/hc/src/common/up_allocateheap.c | 2 +- arch/hc/src/common/up_createstack.c | 4 +- arch/hc/src/common/up_releasestack.c | 4 +- arch/mips/include/mips32/irq.h | 8 +-- arch/mips/include/mips32/syscall.h | 4 +- arch/mips/src/common/up_allocateheap.c | 2 +- arch/mips/src/common/up_createstack.c | 4 +- arch/mips/src/common/up_releasestack.c | 4 +- arch/mips/src/mips32/up_initialstate.c | 2 +- arch/mips/src/mips32/up_swint0.c | 6 +- arch/mips/src/pic32mx/pic32mx-config.h | 2 +- arch/rgmp/src/nuttx.c | 6 +- arch/sh/src/common/up_allocateheap.c | 2 +- arch/sh/src/common/up_createstack.c | 4 +- arch/sh/src/common/up_releasestack.c | 4 +- arch/sh/src/sh1/sh1_initialstate.c | 4 +- arch/sim/src/up_allocateheap.c | 4 -- arch/sim/src/up_createstack.c | 18 +---- arch/sim/src/up_releasestack.c | 21 +----- arch/x86/src/common/up_allocateheap.c | 2 +- arch/x86/src/i486/up_createstack.c | 4 +- arch/x86/src/i486/up_initialstate.c | 4 +- arch/x86/src/i486/up_releasestack.c | 4 +- arch/z16/src/common/up_allocateheap.c | 7 -- arch/z16/src/common/up_createstack.c | 26 +------ arch/z16/src/common/up_releasestack.c | 21 +----- arch/z80/src/common/up_allocateheap.c | 2 +- arch/z80/src/common/up_createstack.c | 4 +- arch/z80/src/common/up_releasestack.c | 4 +- binfmt/Kconfig | 14 ++-- binfmt/pcode.c | 14 ++-- configs/ea3131/pgnsh/defconfig | 2 +- configs/mikroe-stm32f4/kernel/up_userspace.c | 4 +- configs/mikroe-stm32f4/kostest/defconfig | 3 +- configs/open1788/kernel/up_userspace.c | 4 +- configs/open1788/knsh/defconfig | 3 +- configs/pcduino-a10/nsh/pcduino-140107.patch | 2 +- configs/sam3u-ek/kernel/up_userspace.c | 4 +- configs/sam3u-ek/knsh/defconfig | 3 +- configs/sam4s-xplained-pro/nsh/defconfig | 1 + configs/stm3240g-eval/kernel/up_userspace.c | 4 +- configs/stm3240g-eval/knxwm/defconfig | 3 +- configs/stm3240g-eval/src/up_boot.c | 8 +-- .../stm32f4discovery/kernel/up_userspace.c | 4 +- configs/stm32f4discovery/kostest/defconfig | 3 +- drivers/timer.c | 2 +- fs/fs_fdopen.c | 3 +- include/errno.h | 3 +- include/nuttx/arch.h | 40 ++++++----- include/nuttx/clock.h | 7 +- include/nuttx/kmalloc.h | 10 +-- include/nuttx/mm.h | 14 ++-- include/nuttx/pgalloc.h | 2 +- include/nuttx/sched.h | 6 +- include/nuttx/userspace.h | 12 ++-- include/nuttx/wqueue.h | 25 ++++--- include/sys/syscall.h | 2 +- libc/Kconfig | 4 +- libc/Makefile | 12 +++- libc/README.txt | 7 +- libc/lib_internal.h | 3 +- libc/misc/lib_init.c | 5 +- libc/pthread/Make.defs | 2 +- libc/pthread/pthread_attrinit.c | 3 +- libc/pthread/pthread_startup.c | 5 +- libc/sched/Make.defs | 2 +- libc/sched/task_startup.c | 4 +- libc/stdio/lib_lowsyslog.c | 2 +- libc/stdio/lib_syslog.c | 2 +- libc/wqueue/Make.defs | 2 +- libc/wqueue/work_thread.c | 6 +- libc/wqueue/work_usrstart.c | 4 +- libnx/Makefile | 4 +- libnx/nxcontext.h | 4 +- libxx/libxx_internal.hxx | 3 +- mm/Kconfig | 4 +- mm/Makefile | 12 +++- mm/mm_calloc.c | 2 +- mm/mm_free.c | 2 +- mm/mm_kernel.c | 5 +- mm/mm_mallinfo.c | 4 +- mm/mm_malloc.c | 2 +- mm/mm_memalign.c | 2 +- mm/mm_pgalloc.c | 2 +- mm/mm_realloc.c | 2 +- mm/mm_user.c | 4 +- mm/mm_zalloc.c | 2 +- sched/group/group_create.c | 8 +-- sched/group/group_leave.c | 7 +- sched/group/group_setupstreams.c | 3 +- sched/init/os_bringup.c | 4 +- sched/init/os_start.c | 14 ++-- sched/pthread/pthread_create.c | 2 +- sched/sched/sched.h | 3 +- sched/sched/sched_free.c | 6 +- sched/sched/sched_garbage.c | 3 +- sched/sched/sched_getstreams.c | 3 +- sched/sched/sched_releasetcb.c | 8 ++- sched/signal/sig_deliver.c | 2 +- sched/task/task_exithook.c | 3 +- sched/task/task_setup.c | 15 +++-- sched/task/task_start.c | 2 +- syscall/Kconfig | 4 +- 210 files changed, 690 insertions(+), 655 deletions(-) diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index 88155b8cad..7bbadfaed3 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: August 24, 2014

+

Last Updated: August 29, 2014

@@ -486,7 +486,7 @@ kernel-mode NuttX functions. This directory must always be provided to prevent compilation errors. However, it need only contain valid function declarations if the architecture - supports the CONFIG_NUTTX_KERNEL configuration. + supports the CONFIG_BUILD_PROTECTED or CONFIG_BUILD_KERNELconfigurations. @@ -1909,7 +1906,7 @@ The system can be re-made subsequently by just typing make.

- This API is NOT required if CONFIG_NUTTX_KERNEL is undefined or if CONFIG_CUSTOM_STACK is defined. + This API is NOT required if CONFIG_BUILD_PROTECTED and CONFIG_BUILD_KERNEL are undefined or if CONFIG_CUSTOM_STACK is defined.

Input Parameters: