-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ck_pr/sparcv9: use the correct address space for atomics on FreeBSD
On FreeBSD, atomic operations in the kernel must access the nucleus address space. Userland may use either the atomic instruction set which goes without an ASI (address space identifier) or specify the primary address space. To avoid hardcoding the address space here, we grab the corresponding identifier from the appropriate machine header but also only for the kernel so the namespace doesn't get polluted for userland.
- Loading branch information
Showing
1 changed file
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters