Skip to content

Commit

Permalink
Merge pull request #164 from sifive/synchronize-harts-hartid-1908
Browse files Browse the repository at this point in the history
[19.08 Backport] Don't call metal API in synchronize_harts()
  • Loading branch information
nategraff-sifive committed Aug 21, 2019
2 parents 3be845f + 54e13dd commit 8a3c9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/synchronize_harts.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ __attribute__((section(".init")))
void __metal_synchronize_harts() {
#if __METAL_DT_MAX_HARTS > 1

int hart = metal_cpu_get_current_hartid();
int hart;
__asm__ volatile("csrr %0, mhartid" : "=r" (hart) ::);

uintptr_t msip_base = 0;

/* Get the base address of the MSIP registers */
Expand Down

0 comments on commit 8a3c9c0

Please sign in to comment.