summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-04-02 15:30:30 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-04-02 15:30:30 +0200
commitc7694c0f419ec54569d6595e216ba0238eaa1808 (patch)
tree9466b5e3538d72064c416c52b75a9a710a50baed /src
parentb884315aa529f5993f8aa12d44d601fdf4a4fac3 (diff)
fw/rv64: fix linker error.
Diffstat (limited to 'src')
-rw-r--r--src/coreboot-start.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/coreboot-start.c b/src/coreboot-start.c
index 07606fc..c7b5094 100644
--- a/src/coreboot-start.c
+++ b/src/coreboot-start.c
@@ -27,13 +27,18 @@ extern void cb_start_rom(void);
extern int cb_boot_processor_ready;
-/// @brief hardware thread counter.
+/// @brief hardware thread counter (rv64 only)
+#ifdef __riscv64__
+uint64_t __cb_hart_counter = 0UL;
+#endif
/// @brief Start executing the firmware.
/// @param
void cb_start_exec(void)
{
+#ifndef __riscv64__
static uint64_t __cb_hart_counter = 0UL;
+#endif
++__cb_hart_counter;