Fix nxstyle issue

This commit is contained in:
Xiang Xiao 2020-04-15 01:42:46 +08:00 committed by Gregory Nutt
parent 0d3691a460
commit 11705ffc71
3 changed files with 15 additions and 12 deletions

View File

@ -55,7 +55,7 @@
/* Configuration ************************************************************/
/* If this is a kernel build, how many nested system calls should we support? */
/* How many nested system calls should we support? */
#ifndef CONFIG_SYS_NNEST
# define CONFIG_SYS_NNEST 2
@ -66,8 +66,10 @@
#define REG_EPC_NDX 0
/* General pupose registers */
/* $0: Zero register does not need to be saved */
/* $1: ra (return address) */
/* $0: Zero register does not need to be saved
* $1: ra (return address)
*/
#define REG_X1_NDX 1

View File

@ -1,7 +1,8 @@
/****************************************************************************
* arch/risc-v/src/common/up_initialize.c
*
* Copyright (C) 2007-2010, 2012-2015, 2017 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2010, 2012-2015, 2017 Gregory Nutt. All rights
* reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without

View File

@ -142,14 +142,14 @@ EXTERN uint32_t g_intstackalloc; /* Allocated stack base */
EXTERN uint32_t g_intstackbase; /* Initial top of interrupt stack */
#endif
/* These 'addresses' of these values are setup by the linker script. They are
* not actual uint32_t storage locations! They are only used meaningfully in the
* following way:
/* These 'addresses' of these values are setup by the linker script. They
* are not actual uint32_t storage locations! They are only used meaningfully
* in the following way:
*
* - The linker script defines, for example, the symbol_sdata.
* - The declareion extern uint32_t _sdata; makes C happy. C will believe
* that the value _sdata is the address of a uint32_t variable _data (it is
* not!).
* that the value _sdata is the address of a uint32_t variable _data (it
* is not!).
* - We can recoved the linker value then by simply taking the address of
* of _data. like: uint32_t *pdata = &_sdata;
*/
@ -165,12 +165,12 @@ EXTERN uint32_t _ebss; /* End+1 of .bss */
#endif /* __ASSEMBLY__ */
/****************************************************************************
* Public Functions
****************************************************************************/
* Public Function Prototypes
***************************************************************************/
#ifndef __ASSEMBLY__
/* Low level initialization provided by board-level logic ******************/
/* Low level initialization provided by board-level logic *******************/
void up_boot(void);