Skip to content

Commit 1a5e064

Browse files
committed
SoC/evalsoc: Fix compile issue when ECLIC not present but SMode present
Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent 9a4bdaf commit 1a5e064

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SoC/evalsoc/Common/Source/system_evalsoc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,7 @@ int32_t PLIC_Register_IRQ_S(uint32_t source, uint8_t priority, void *handler)
12421242
#endif
12431243

12441244
#if defined(__SMODE_PRESENT) && (__SMODE_PRESENT == 1)
1245+
#if defined(__ECLIC_PRESENT) && (__ECLIC_PRESENT == 1)
12451246
/**
12461247
* \brief Initialize a specific IRQ and register the handler for supervisor mode
12471248
* \details
@@ -1282,6 +1283,7 @@ int32_t ECLIC_Register_IRQ_S(IRQn_Type IRQn, uint8_t shv, ECLIC_TRIGGER_Type tri
12821283
return 0;
12831284
}
12841285
#endif
1286+
#endif
12851287

12861288
// NOTE: FALLBACK_DEFAULT_ECLIC_BASE/FALLBACK_DEFAULT_SYSTIMER_BASE macros are removed
12871289
// No longer support for cpu without iregion feature

0 commit comments

Comments
 (0)