diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-08-02 19:07:30 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2021-08-02 19:07:30 +0000 |
commit | 0746fae866128aa255d86e4fdfd258125bb515f6 (patch) | |
tree | 241aba642e072bc986225be9f8e239fe9a014194 /share | |
parent | e47013f9403fd52c329308bd57d271547f67e48a (diff) |
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@
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions