RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
smp.h
Go to the documentation of this file.
1
2// Copyright (C) 2013-2026 Efinix Inc. All rights reserved.
3// Full license header bsp/efinix/EfxSapphireSocRV64/include/LICENSE.MD
5
6#pragma once
7#include "soc.h"
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define STACK_PER_HART 8192
14#define SMP_INUSE (SYSTEM_NUMBER_OF_HARTS > 1)
15
16#if (SYSTEM_NUMBER_OF_HARTS==4)
17 #define BSP_PLIC_CPU_3 SYSTEM_PLIC_CPU_3_MEI
18 #define BSP_PLIC_CPU_2 SYSTEM_PLIC_CPU_2_MEI
19 #define BSP_PLIC_CPU_1 SYSTEM_PLIC_CPU_1_MEI
20#elif (SYSTEM_NUMBER_OF_HARTS==3)
21 #define BSP_PLIC_CPU_2 SYSTEM_PLIC_CPU_2_MEI
22 #define BSP_PLIC_CPU_1 SYSTEM_PLIC_CPU_1_MEI
23#elif (SYSTEM_NUMBER_OF_HARTS==2)
24 #define BSP_PLIC_CPU_1 SYSTEM_PLIC_CPU_1_MEI
25#endif
26
27#ifdef __cplusplus
28}
29#endif // C_plusplus