Skip to content

Commit

Permalink
Move MTVEC_BASE_ADDR_MASK out of the ifdefs
Browse files Browse the repository at this point in the history
This makes the preprocessor macro available in all processor
configurations. Prevents compile error

Jira-Id: ESWBM_RV32-380
  • Loading branch information
aakash-mchp committed Sep 11, 2024
1 parent d8eb1e3 commit 4cf9547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions miv_rv32_hal/miv_rv32_hal.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,14 @@ NOTE: All these macros must not be defined if you are using a MIV_RV32 core.
*/
#define MIMPID read_csr(mimpid)

/*Used as a mask to read and write to mte mtvec.BASE address*/
#define MTVEC_BASE_ADDR_MASK 0xFFFFFFFC

#else
#define MTIME (0u)
#define MTIMEH (0u)
#endif /*MIV_RV32_EXT_TIMER*/

/* Used as a mask to read and write to mtvec.BASE address */
#define MTVEC_BASE_ADDR_MASK 0xFFFFFFFC

/*-------------------------------------------------------------------------*//**
RISC-V Specification Interrupts
=======================================
Expand Down

0 comments on commit 4cf9547

Please sign in to comment.