You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/07 17:07:12 UTC
[incubator-nuttx] branch master updated: arch/riscv: Minor style change and text correction
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b6cf1ac662 arch/riscv: Minor style change and text correction
b6cf1ac662 is described below
commit b6cf1ac662d70a6d07782fc041c50c3f19ee4f3e
Author: Huang Qi <hu...@xiaomi.com>
AuthorDate: Thu Apr 7 10:25:38 2022 +0800
arch/riscv: Minor style change and text correction
Signed-off-by: Huang Qi <hu...@xiaomi.com>
---
arch/risc-v/src/common/riscv_exception.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/arch/risc-v/src/common/riscv_exception.c b/arch/risc-v/src/common/riscv_exception.c
index db27d20720..84162ed97d 100644
--- a/arch/risc-v/src/common/riscv_exception.c
+++ b/arch/risc-v/src/common/riscv_exception.c
@@ -25,7 +25,6 @@
#include <nuttx/config.h>
#include <stdint.h>
-#include <stdlib.h>
#include <assert.h>
#include <debug.h>
@@ -34,6 +33,10 @@
#include "riscv_internal.h"
+/****************************************************************************
+ * Private Data
+ ****************************************************************************/
+
static const char *g_reasons_str[RISCV_MAX_EXCEPTION + 1] =
{
"Instruction address misaligned",
@@ -46,7 +49,7 @@ static const char *g_reasons_str[RISCV_MAX_EXCEPTION + 1] =
"Store/AMO access fault",
"Environment call from U-mode",
"Environment call from S-mode",
- "Reserved",
+ "Environment call from H-mode",
"Environment call from M-mode",
"Instruction page fault",
"Load page fault",