CVSROOT:        /cvs
Module name:    src
Changes by:     kette...@cvs.openbsd.org        2021/08/02 13:07:29

Modified files:
        sys/arch/riscv64/riscv64: pmap.c 

Log message:
Add memory barrier (data FENCE) before making the SBI call to issue a
FENCE.I instruction on the remote harts.  According to the RISC-V
ISA documentation this is necessary to make remote harts observe earlier
stores.  Also issue the local FENCE.I first; this is what both FreeBSD and
Linux does.  Seems to fix at least some of the issue we've seen running
GENERIC.MP on MP machines.

ok jca@

Reply via email to