Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core/naxriscv provide a deployable NaxRiscv SMP #1776

Merged
merged 14 commits into from
Sep 18, 2023
13 changes: 12 additions & 1 deletion litex/soc/cores/cpu/naxriscv/boot-helper.S
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
.section .text, "ax", @progbits
.global boot_helper
.global boot_helper
.global smp_lottery_target
.global smp_lottery_lock
.global smp_lottery_args

boot_helper:
sw x10, smp_lottery_args , x14
sw x11, smp_lottery_args+4, x14
sw x12, smp_lottery_args+8, x14
sw x13, smp_lottery_target, x14
fence w, w
li x15, 1
sw x15, smp_lottery_lock, x14
jr x13
Loading