arch/riscv: Minor style change and text correction
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
d5b34f9ce0
commit
b6cf1ac662
1 changed files with 5 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue