Page MenuHomeFreeBSD

Implement atomic_load_acq_16
ClosedPublic

Authored by br on Fri, May 17, 10:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 9, 8:02 PM
Unknown Object (File)
Sat, May 25, 2:00 PM
Unknown Object (File)
Sat, May 25, 1:59 PM
Unknown Object (File)
Sat, May 25, 8:31 AM
Unknown Object (File)
Wed, May 22, 5:38 PM
Unknown Object (File)
Mon, May 20, 5:33 PM
Subscribers

Details

Summary
  • Implement atomic_load_acq_16(), atomic_store_rel_16(). One of these needed for bhyve pci emulation.
  • Group 16-bit functions similarly to 32 and 64.
Test Plan

bhyve pass

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br requested review of this revision.Fri, May 17, 10:03 AM
br created this revision.
sys/riscv/include/atomic.h
116–144

These two lines should be grouped with the other #defines below.

122

?

sys/riscv/include/atomic.h
116–144

should we use same grouping as for 32 / 64 ? cmpset/fcmpset seem to go before acquire/release declarations in 32, 64 variants

122

needed by sys/_atomic_subword.h as it checks if macro defined

mhorne added inline comments.
sys/riscv/include/atomic.h
116–144

You are right, it is fine as-is.

This revision is now accepted and ready to land.Wed, May 22, 1:51 PM
This revision was automatically updated to reflect the committed changes.