From 11705ffc71f1606d0b7d7febef1f77d18762ea57 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Wed, 15 Apr 2020 01:42:46 +0800 Subject: [PATCH] Fix nxstyle issue --- arch/risc-v/include/rv32im/irq.h | 8 +++++--- arch/risc-v/src/common/up_initialize.c | 3 ++- arch/risc-v/src/common/up_internal.h | 16 ++++++++-------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/arch/risc-v/include/rv32im/irq.h b/arch/risc-v/include/rv32im/irq.h index 567a75c5ed..888d160f41 100644 --- a/arch/risc-v/include/rv32im/irq.h +++ b/arch/risc-v/include/rv32im/irq.h @@ -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 diff --git a/arch/risc-v/src/common/up_initialize.c b/arch/risc-v/src/common/up_initialize.c index 21b848f11a..c6c0066fdb 100644 --- a/arch/risc-v/src/common/up_initialize.c +++ b/arch/risc-v/src/common/up_initialize.c @@ -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 * * Redistribution and use in source and binary forms, with or without diff --git a/arch/risc-v/src/common/up_internal.h b/arch/risc-v/src/common/up_internal.h index 068d05fce6..4a1994656d 100644 --- a/arch/risc-v/src/common/up_internal.h +++ b/arch/risc-v/src/common/up_internal.h @@ -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);