unix: provide linux/sparc64 assembly for syscalls

While the linux/sparc64 port is not yet upstream, the rest of the package
already has linux/sparc64 support; without this assembly it does not compile
there at all.

Add it in the same shape as the other linux architectures: jump to package
syscall's implementations where they exist, and trap directly for the two
NoError variants. On SPARC the trap is ta 0x6d, with the syscall number in
%g1 and the arguments in %o0-%o5.

Updates golang/go#55000

Change-Id: I793d8fcc7b0d5fd60dddf76588181a842a15e898
GitHub-Last-Rev: cd72e3d509b0518adba953e3fc20c637daaa8fe4
GitHub-Pull-Request: golang/sys#292
Reviewed-on: https://go-review.googlesource.com/c/sys/+/823604
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Kirill Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
1 file changed
tree: 30dd31f6244e1252a6365c408aa1b66eecbea792
  1. cpu/
  2. execabs/
  3. plan9/
  4. unix/
  5. windows/
  6. .gitattributes
  7. .gitignore
  8. codereview.cfg
  9. CONTRIBUTING.md
  10. go.mod
  11. LICENSE
  12. PATENTS
  13. README.md
README.md

sys

Go Reference

This repository holds supplemental Go packages for low-level interactions with the operating system.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/sys.

The main issue tracker for the sys repository is located at https://go.dev/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.