arch/riscv: Minor style change and text correction

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi 2022-04-07 10:25:38 +08:00 committed by Xiang Xiao
parent d5b34f9ce0
commit b6cf1ac662

View file

@ -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",