[sw/lib] add page fault mcause codes

This commit is contained in:
stnolting 2024-02-01 19:59:17 +01:00
parent 1e2d9af772
commit 41b3956442

View file

@ -3,7 +3,7 @@
// # ********************************************************************************************* #
// # BSD 3-Clause License #
// # #
// # Copyright (c) 2023, Stephan Nolting. All rights reserved. #
// # Copyright (c) 2024, Stephan Nolting. All rights reserved. #
// # #
// # Redistribution and use in source and binary forms, with or without modification, are #
// # permitted provided that the following conditions are met: #
@ -455,6 +455,9 @@ enum NEORV32_EXCEPTION_CODES_enum {
TRAP_CODE_S_ACCESS = 0x00000007U, /**< 0.7: Store (bus) access fault */
TRAP_CODE_UENV_CALL = 0x00000008U, /**< 0.8: Environment call from user mode (ECALL instruction) */
TRAP_CODE_MENV_CALL = 0x0000000bU, /**< 0.11: Environment call from machine mode (ECALL instruction) */
TRAP_CODE_I_PAGE = 0x0000000cU, /**< 0.12: Instruction page fault */
TRAP_CODE_L_PAGE = 0x0000000dU, /**< 0.13: Load page fault */
TRAP_CODE_S_PAGE = 0x0000000fU, /**< 0.15: Store page fault */
TRAP_CODE_MSI = 0x80000003U, /**< 1.3: Machine software interrupt */
TRAP_CODE_MTI = 0x80000007U, /**< 1.7: Machine timer interrupt */
TRAP_CODE_MEI = 0x8000000bU, /**< 1.11: Machine external interrupt */