Skip to content

Commit

Permalink
NMSIS/Core: Fix wrong macro PLIC_GetThreshold & PLIC_GetThreshold_S
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Nov 25, 2024
1 parent 7def32d commit 4772225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NMSIS/Core/Include/core_feature_plic.h
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ __STATIC_FORCEINLINE void PLIC_Context_Init(uint32_t ctxid, uint32_t num_sources
#define PLIC_SetThreshold(source, thresh) PLIC_SetContextThreshold(PLIC_GetHartMContextID(), (source), (thresh))
#define PLIC_SetThreshold_S(source, thresh) PLIC_SetContextThreshold(PLIC_GetHartSContextID(), (source), (thresh))

#define PLIC_GetThreshold(source) PLIC_GetContextThreshold(PLIC_GetHartMContextID(), (source))
#define PLIC_GetThreshold_S(source) PLIC_GetContextThreshold(PLIC_GetHartSContextID(), (source))
#define PLIC_GetThreshold() PLIC_GetContextThreshold(PLIC_GetHartMContextID())
#define PLIC_GetThreshold_S() PLIC_GetContextThreshold(PLIC_GetHartSContextID())

/**
* \brief Set Trap entry address
Expand Down

0 comments on commit 4772225

Please sign in to comment.