SBI calls expect a pointer to a u_long rather than a pointer.
This is just cosmetic. A weirder issue is that the SBI doc claims the hart mask pointer should be a physical address, not a virtual address. However, the implementation in bbl seems to just dereference the address directly. Reviewed by: markj Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D17781
This commit is contained in:
parent
344adeab18
commit
a751b25546
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340028
@ -202,7 +202,7 @@ riscv_unmask_ipi(void)
|
||||
static void
|
||||
ipi_send(struct pcpu *pc, int ipi)
|
||||
{
|
||||
uintptr_t mask;
|
||||
u_long mask;
|
||||
|
||||
CTR3(KTR_SMP, "%s: cpu=%d, ipi=%x", __func__, pc->pc_cpuid, ipi);
|
||||
|
||||
@ -242,7 +242,7 @@ void
|
||||
ipi_selected(cpuset_t cpus, u_int ipi)
|
||||
{
|
||||
struct pcpu *pc;
|
||||
uintptr_t mask;
|
||||
u_long mask;
|
||||
|
||||
CTR1(KTR_SMP, "ipi_selected: ipi: %x", ipi);
|
||||
|
||||
|
@ -181,7 +181,7 @@ riscv64_cpu_attach(device_t dev)
|
||||
static void
|
||||
release_aps(void *dummy __unused)
|
||||
{
|
||||
uintptr_t mask;
|
||||
u_long mask;
|
||||
int cpu, i;
|
||||
|
||||
if (mp_ncpus == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user