Skip to content

Commit

Permalink
Merge pull request #1776 from Dolu1990/nax-smp
Browse files Browse the repository at this point in the history
core/naxriscv provide a deployable NaxRiscv SMP
  • Loading branch information
enjoy-digital authored Sep 18, 2023
2 parents 8bd548d + ff3318b commit 4639c7b
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 141 deletions.
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

0 comments on commit 4639c7b

Please sign in to comment.