Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for ARM CPUs #1

Open
jonhoo opened this issue May 7, 2015 · 1 comment
Open

No support for ARM CPUs #1

jonhoo opened this issue May 7, 2015 · 1 comment

Comments

@jonhoo
Copy link
Owner

jonhoo commented May 7, 2015

There is currently no .s file for cpu() on non-x86 architechtures. Adding support for ARM should be fairly straightforward by reading the CPU ID register, but I don't have a machine to test this on. Patches are welcome.

@jonhoo
Copy link
Owner Author

jonhoo commented May 7, 2015

A fallback mechanism should probably also be implemented to allow DRWMutex to use the SYS_GETCPU syscall (although it is slow) if need be. In that particular case, just returning 0 (and thus falling back to the behaviour of the regular sync.RWMutex) might be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant