arch: arm: armv6-m: fix nxstyle errors

Fix nxstyle errors to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea 2021-03-24 09:12:03 +01:00 committed by Xiang Xiao
parent 2f2bda3385
commit b2cd6fb980
9 changed files with 135 additions and 129 deletions

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/arm_exception.S * arch/arm/src/armv6-m/arm_exception.S
* *
* Copyright (C) 2013 Gregory Nutt. All rights reserved. * Copyright (C) 2013 Gregory Nutt. All rights reserved.
@ -35,11 +35,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
* *
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
@ -48,18 +48,18 @@
#include "chip.h" #include "chip.h"
/************************************************************************************ /****************************************************************************
* Public Symbols * Public Symbols
************************************************************************************/ ****************************************************************************/
.globl exception_common .globl exception_common
.cpu cortex-m0 .cpu cortex-m0
.file "arm_exception.S" .file "arm_exception.S"
/************************************************************************************ /****************************************************************************
* .text * .text
************************************************************************************/ ****************************************************************************/
/* Common exception handling logic. On entry here, the return stack is on either /* Common exception handling logic. On entry here, the return stack is on either
* the PSP or the MSP and looks like the following: * the PSP or the MSP and looks like the following:
@ -258,13 +258,13 @@ exception_common:
.size exception_common, .-exception_common .size exception_common, .-exception_common
/************************************************************************************ /****************************************************************************
* Name: g_intstackalloc/g_intstackbase * Name: g_intstackalloc/g_intstackbase
* *
* Description: * Description:
* Shouldn't happen * Shouldn't happen
* *
************************************************************************************/ ****************************************************************************/
#if CONFIG_ARCH_INTERRUPTSTACK > 3 #if CONFIG_ARCH_INTERRUPTSTACK > 3
.bss .bss

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/arm_fullcontextrestore.S * arch/arm/src/armv6-m/arm_fullcontextrestore.S
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,11 +16,11 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <arch/irq.h> #include <arch/irq.h>
@ -28,26 +28,26 @@
#include "nvic.h" #include "nvic.h"
#include "svcall.h" #include "svcall.h"
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Symbols * Public Symbols
************************************************************************************/ ****************************************************************************/
.cpu cortex-m0 .cpu cortex-m0
.file "arm_fullcontextrestore.S" .file "arm_fullcontextrestore.S"
/************************************************************************************ /****************************************************************************
* Macros * Macros
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Name: arm_fullcontextrestore * Name: arm_fullcontextrestore
* *
* Description: * Description:
@ -58,7 +58,7 @@
* Returned Value: * Returned Value:
* None * None
* *
************************************************************************************/ ****************************************************************************/
.align 2 .align 2
.code 16 .code 16

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/arm_saveusercontext.S * arch/arm/src/armv6-m/arm_saveusercontext.S
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,11 +16,11 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <arch/irq.h> #include <arch/irq.h>
@ -28,26 +28,26 @@
#include "nvic.h" #include "nvic.h"
#include "svcall.h" #include "svcall.h"
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Symbols * Public Symbols
************************************************************************************/ ****************************************************************************/
.cpu cortex-m0 .cpu cortex-m0
.file "arm_saveusercontext.S" .file "arm_saveusercontext.S"
/************************************************************************************ /****************************************************************************
* Macros * Macros
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Name: arm_saveusercontext * Name: arm_saveusercontext
* *
* Description: * Description:
@ -59,7 +59,7 @@
* 0: Normal return * 0: Normal return
* 1: Context switch return * 1: Context switch return
* *
************************************************************************************/ ****************************************************************************/
.text .text
.align 2 .align 2

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/arm_switchcontext.S * arch/arm/src/armv6-m/arm_switchcontext.S
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,11 +16,11 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <arch/irq.h> #include <arch/irq.h>
@ -28,26 +28,26 @@
#include "nvic.h" #include "nvic.h"
#include "svcall.h" #include "svcall.h"
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Symbols * Public Symbols
************************************************************************************/ ****************************************************************************/
.cpu cortex-m0 .cpu cortex-m0
.file "arm_switchcontext.S" .file "arm_switchcontext.S"
/************************************************************************************ /****************************************************************************
* Macros * Macros
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Name: arm_switchcontext * Name: arm_switchcontext
* *
* Description: * Description:
@ -59,7 +59,7 @@
* Returned Value: * Returned Value:
* None * None
* *
************************************************************************************/ ****************************************************************************/
.align 2 .align 2
.code 16 .code 16

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/exc_return.h * arch/arm/src/armv6-m/exc_return.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,73 +16,75 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_SRC_ARMV6_M_EXC_RETURN_H #ifndef __ARCH_ARM_SRC_ARMV6_M_EXC_RETURN_H
#define __ARCH_ARM_SRC_ARMV6_M_EXC_RETURN_H #define __ARCH_ARM_SRC_ARMV6_M_EXC_RETURN_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/* The processor saves an EXC_RETURN value to the LR on exception entry. The /* The processor saves an EXC_RETURN value to the LR on exception entry. The
* exception mechanism relies on this value to detect when the processor has * exception mechanism relies on this value to detect when the processor has
* completed an exception handler. * completed an exception handler.
* *
* Bits [31:4] of an EXC_RETURN value are always 1. When the processor loads a * Bits [31:4] of an EXC_RETURN value are always 1. When the processor loads
* value matching this pattern to the PC it detects that the operation is a not * a value matching this pattern to the PC it detects that the operation is a
* a normal branch operation and instead, that the exception is complete. * not a normal branch operation and instead, that the exception is complete.
* Therefore, it starts the exception return sequence. * Therefore, it starts the exception return sequence.
* *
* Bits[3:0] of the EXC_RETURN value indicate the required return stack and eventual * Bits[3:0] of the EXC_RETURN value indicate the required return stack and
* processor mode. The remaining bits of the EXC_RETURN value should be set to 1. * eventual processor mode.
*
* The remaining bits of the EXC_RETURN value should be set to 1.
*/ */
/* EXC_RETURN_BASE: Bits that are always set in an EXC_RETURN value. */ /* EXC_RETURN_BASE: Bits that are always set in an EXC_RETURN value. */
#define EXC_RETURN_BASE 0xfffffff1 #define EXC_RETURN_BASE 0xfffffff1
/* EXC_RETURN_PROCESS_STACK: The exception saved (and will restore) the hardware /* EXC_RETURN_PROCESS_STACK: The exception saved (and will restore) the
* context using the process stack pointer (if not set, the context was saved * hardware context using the process stack pointer (if not set, the context
* using the main stack pointer) * was saved using the main stack pointer)
*/ */
#define EXC_RETURN_PROCESS_BITNO (2) #define EXC_RETURN_PROCESS_BITNO (2)
#define EXC_RETURN_PROCESS_STACK (1 << EXC_RETURN_PROCESS_BITNO) #define EXC_RETURN_PROCESS_STACK (1 << EXC_RETURN_PROCESS_BITNO)
/* EXC_RETURN_THREAD_MODE: The exception will return to thread mode (if not set, /* EXC_RETURN_THREAD_MODE: The exception will return to thread mode
* return stays in handler mode). * (if not set, return stays in handler mode).
*/ */
#define EXC_RETURN_THREAD_BITNO (3) #define EXC_RETURN_THREAD_BITNO (3)
#define EXC_RETURN_THREAD_MODE (1 << EXC_RETURN_THREAD_BITNO) #define EXC_RETURN_THREAD_MODE (1 << EXC_RETURN_THREAD_BITNO)
/* EXC_RETURN_HANDLER: Return to handler mode. Exception return gets state from /* EXC_RETURN_HANDLER: Return to handler mode. Exception return gets state
* the main stack. Execution uses MSP after return. * from the main stack. Execution uses MSP after return.
*/ */
#define EXC_RETURN_HANDLER 0xfffffff1 #define EXC_RETURN_HANDLER 0xfffffff1
/* EXC_RETURN_PRIVTHR: Return to privileged thread mode. Exception return gets /* EXC_RETURN_PRIVTHR: Return to privileged thread mode. Exception return
* state from the main stack. Execution uses MSP after return. * gets state from the main stack. Execution uses MSP after return.
*/ */
#define EXC_RETURN_PRIVTHR 0xfffffff9 #define EXC_RETURN_PRIVTHR 0xfffffff9
/* EXC_RETURN_UNPRIVTHR: Return to unprivileged thread mode. Exception return gets /* EXC_RETURN_UNPRIVTHR: Return to unprivileged thread mode. Exception return
* state from the process stack. Execution uses PSP after return. * gets state from the process stack. Execution uses PSP after return.
*/ */
#define EXC_RETURN_UNPRIVTHR 0xfffffffd #define EXC_RETURN_UNPRIVTHR 0xfffffffd
/************************************************************************************ /****************************************************************************
* Inline Functions * Inline Functions
************************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_SRC_ARMV6_M_EXC_RETURN_H */ #endif /* __ARCH_ARM_SRC_ARMV6_M_EXC_RETURN_H */

View File

@ -1,4 +1,4 @@
/**************************************************************************************************** /****************************************************************************
* arch/arm/src/armv6-m/nvic.h * arch/arm/src/armv6-m/nvic.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,23 +16,23 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
****************************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_SRC_COMMON_ARMV6_M_NVIC_H #ifndef __ARCH_ARM_SRC_COMMON_ARMV6_M_NVIC_H
#define __ARCH_ARM_SRC_COMMON_ARMV6_M_NVIC_H #define __ARCH_ARM_SRC_COMMON_ARMV6_M_NVIC_H
/**************************************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h> #include <nuttx/compiler.h>
/**************************************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************************************/ ****************************************************************************/
/* Base addresses ***********************************************************************************/ /* Base addresses ***********************************************************/
#define ARMV6M_SYSCON1_BASE 0xe000e008 /* 0xe000e008-0xe000e00f System Control Block */ #define ARMV6M_SYSCON1_BASE 0xe000e008 /* 0xe000e008-0xe000e00f System Control Block */
/* 0xe000e010-0xe000e01f Reserved */ /* 0xe000e010-0xe000e01f Reserved */
@ -41,7 +41,7 @@
#define ARMV6M_SYSCON2_BASE 0xe000ed00 /* 0xe000ed00-0xe000ed3f System Control Block */ #define ARMV6M_SYSCON2_BASE 0xe000ed00 /* 0xe000ed00-0xe000ed3f System Control Block */
#define ARMV6M_NVIC2_BASE 0xe000ef00 /* 0xe000ef00-0xe000ef03 Nested Vectored Interrupt Controller */ #define ARMV6M_NVIC2_BASE 0xe000ef00 /* 0xe000ef00-0xe000ef03 Nested Vectored Interrupt Controller */
/* NVIC register offsets ****************************************************************************/ /* NVIC register offsets ****************************************************/
/* NVIC register offsets (all relative to ARMV6M_NVIC1_BASE) */ /* NVIC register offsets (all relative to ARMV6M_NVIC1_BASE) */
@ -77,7 +77,7 @@
#define ARMV6M_SYSTICK_CVR_OFFSET 0x0008 /* SysTick current value register */ #define ARMV6M_SYSTICK_CVR_OFFSET 0x0008 /* SysTick current value register */
#define ARMV6M_SYSTICK_CALIB_OFFSET 0x000c /* SysTick calibration value register */ #define ARMV6M_SYSTICK_CALIB_OFFSET 0x000c /* SysTick calibration value register */
/* Register addresses *******************************************************************************/ /* Register addresses *******************************************************/
/* NVIC register addresses */ /* NVIC register addresses */
@ -113,7 +113,7 @@
#define ARMV6M_SYSTICK_CVR (ARMV6M_SYSTICK_BASE+ARMV6M_SYSTICK_CVR_OFFSET) #define ARMV6M_SYSTICK_CVR (ARMV6M_SYSTICK_BASE+ARMV6M_SYSTICK_CVR_OFFSET)
#define ARMV6M_SYSTICK_CALIB (ARMV6M_SYSTICK_BASE+ARMV6M_SYSTICK_CALIB_OFFSET) #define ARMV6M_SYSTICK_CALIB (ARMV6M_SYSTICK_BASE+ARMV6M_SYSTICK_CALIB_OFFSET)
/* Register bit definitions *************************************************************************/ /* Register bit definitions *************************************************/
/* Interrupt set-enable register */ /* Interrupt set-enable register */
@ -347,13 +347,13 @@
#define SYSTICK_CALIB_SKEW (1 << 30) /* Bit 30: TENMS value is exact */ #define SYSTICK_CALIB_SKEW (1 << 30) /* Bit 30: TENMS value is exact */
#define SYSTICK_CALIB_NOREF (1 << 31) /* Bit 31: Device provides a reference clock */ #define SYSTICK_CALIB_NOREF (1 << 31) /* Bit 31: Device provides a reference clock */
/**************************************************************************************************** /****************************************************************************
* Public Types * Public Types
****************************************************************************************************/ ****************************************************************************/
/**************************************************************************************************** /****************************************************************************
* Public Data * Public Data
****************************************************************************************************/ ****************************************************************************/
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#undef EXTERN #undef EXTERN
@ -365,17 +365,17 @@ extern "C"
#define EXTERN extern #define EXTERN extern
#endif #endif
/**************************************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
****************************************************************************************************/ ****************************************************************************/
/**************************************************************************************************** /****************************************************************************
* Function: arm_dumpnvic * Function: arm_dumpnvic
* *
* Description: * Description:
* Dump all NVIC and SYSCON registers along with a user message. * Dump all NVIC and SYSCON registers along with a user message.
* *
****************************************************************************************************/ ****************************************************************************/
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_FEATURES
void arm_dumpnvic(FAR const char *msg); void arm_dumpnvic(FAR const char *msg);

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/psr.h * arch/arm/src/armv6-m/psr.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,18 +16,18 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_SRC_COMMON_ARMV6_M_PSR_H #ifndef __ARCH_ARM_SRC_COMMON_ARMV6_M_PSR_H
#define __ARCH_ARM_SRC_COMMON_ARMV6_M_PSR_H #define __ARCH_ARM_SRC_COMMON_ARMV6_M_PSR_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/* Application Program Status Register (APSR) */ /* Application Program Status Register (APSR) */
@ -55,8 +55,8 @@
#define ARMV6M_XPSR_Z ARMV6M_APSR_Z #define ARMV6M_XPSR_Z ARMV6M_APSR_Z
#define ARMV6M_XPSR_N ARMV6M_APSR_N #define ARMV6M_XPSR_N ARMV6M_APSR_N
/************************************************************************************ /****************************************************************************
* Inline Functions * Inline Functions
************************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_SRC_COMMON_ARMV6_M_PSR_H */ #endif /* __ARCH_ARM_SRC_COMMON_ARMV6_M_PSR_H */

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/svcall.h * arch/arm/src/armv6-m/svcall.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,14 +16,14 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
#ifndef __ARCH_ARM_SRC_ARMV6_M_SVCALL_H #ifndef __ARCH_ARM_SRC_ARMV6_M_SVCALL_H
#define __ARCH_ARM_SRC_ARMV6_M_SVCALL_H #define __ARCH_ARM_SRC_ARMV6_M_SVCALL_H
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
@ -31,15 +31,17 @@
# include <syscall.h> # include <syscall.h>
#endif #endif
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/* Configuration ********************************************************************/ /* Configuration ************************************************************/
/* This logic uses three system calls {0,1,2} for context switching and one for the /* This logic uses three system calls {0,1,2} for context switching and one
* syscall return. So a minimum of four syscall values must be reserved. If * for the syscall return.
* CONFIG_BUILD_PROTECTED is defined, then four more syscall values must be reserved. * So a minimum of four syscall values must be reserved.
* If CONFIG_BUILD_PROTECTED is defined, then four more syscall values must
* be reserved.
*/ */
#ifdef CONFIG_LIB_SYSCALL #ifdef CONFIG_LIB_SYSCALL
@ -58,7 +60,7 @@
# endif # endif
#endif #endif
/* Cortex M0 system calls ***********************************************************/ /* Cortex M0 system calls ***************************************************/
/* SYS call 0: /* SYS call 0:
* *
@ -100,7 +102,8 @@
/* SYS call 5: /* SYS call 5:
* *
* void up_pthread_start(pthread_startroutine_t entrypt, pthread_addr_t arg) * void up_pthread_start(pthread_startroutine_t entrypt,
* pthread_addr_t arg)
* noreturn_function * noreturn_function
*/ */
@ -108,7 +111,8 @@
/* SYS call 6: /* SYS call 6:
* *
* void signal_handler(_sa_sigaction_t sighand, int signo, FAR siginfo_t *info, * void signal_handler(_sa_sigaction_t sighand, int signo,
* FAR siginfo_t *info,
* FAR void *ucontext); * FAR void *ucontext);
*/ */
@ -124,8 +128,8 @@
#endif /* CONFIG_BUILD_PROTECTED */ #endif /* CONFIG_BUILD_PROTECTED */
#endif /* CONFIG_LIB_SYSCALL */ #endif /* CONFIG_LIB_SYSCALL */
/************************************************************************************ /****************************************************************************
* Inline Functions * Inline Functions
************************************************************************************/ ****************************************************************************/
#endif /* __ARCH_ARM_SRC_ARMV6_M_SVCALL_H */ #endif /* __ARCH_ARM_SRC_ARMV6_M_SVCALL_H */

View File

@ -1,4 +1,4 @@
/************************************************************************************ /****************************************************************************
* arch/arm/src/armv6-m/vfork.S * arch/arm/src/armv6-m/vfork.S
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,33 +16,33 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Included Files * Included Files
************************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include "arm_vfork.h" #include "arm_vfork.h"
/************************************************************************************ /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Public Symbols * Public Symbols
************************************************************************************/ ****************************************************************************/
.cpu cortex-m0 .cpu cortex-m0
.file "vfork.S" .file "vfork.S"
.globl up_vfork .globl up_vfork
/************************************************************************************ /****************************************************************************
* Public Functions * Public Functions
************************************************************************************/ ****************************************************************************/
/************************************************************************************ /****************************************************************************
* Name: vfork * Name: vfork
* *
* Description: * Description:
@ -81,7 +81,7 @@
* returned to the parent, no child process is created, and errno is set to * returned to the parent, no child process is created, and errno is set to
* indicate the error. * indicate the error.
* *
************************************************************************************/ ****************************************************************************/
.align 2 .align 2
.code 16 .code 16