internal/syscall/unix: define copyFileRangeTrap for all architectures

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/246363
This commit is contained in:
Ian Lance Taylor 2020-08-02 14:00:48 -07:00
parent 6c4763fa5b
commit d8ea6acb5f
10 changed files with 35 additions and 27 deletions

View File

@ -1,4 +1,4 @@
2c390ba951e83b547f6387cc9e19436c085b3775
82a0db12bcb205748a5319b03e070d5502246ba7
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.

View File

@ -4,6 +4,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 511
const (
getrandomTrap uintptr = 511
copyFileRangeTrap uintptr = 519
)

View File

@ -4,6 +4,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 0x40000000 + 318
const (
getrandomTrap uintptr = 0x40000000 + 318
copyFileRangeTrap uintptr = 0x40000000 + 326
)

View File

@ -3,13 +3,13 @@
// license that can be found in the LICENSE file.
// +build linux
// +build arm64 riscv64
// +build arm64 arm64be nios2 riscv riscv64
package unix
// This file is named "generic" because at a certain point Linux started
// standardizing on system call numbers across architectures. So far this
// means only arm64 and riscv64 use the standard numbers.
// means only arm64, nios2 and riscv use the standard numbers.
const (
getrandomTrap uintptr = 278

View File

@ -4,6 +4,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 349
const (
getrandomTrap uintptr = 315
copyFileRangeTrap uintptr = 323
)

View File

@ -4,6 +4,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 352
const (
getrandomTrap uintptr = 352
copyFileRangeTrap uintptr = 376
)

View File

@ -6,6 +6,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 6317
const (
getrandomTrap uintptr = 6317
copyFileRangeTrap uintptr = 6324
)

View File

@ -4,6 +4,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 1339
const (
getrandomTrap uintptr = 349
copyFileRangeTrap uintptr = 375
)

View File

@ -6,6 +6,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 373
const (
getrandomTrap uintptr = 373
copyFileRangeTrap uintptr = 380
)

View File

@ -6,6 +6,7 @@
package unix
// Linux getrandom system call number.
// See GetRandom in getrandom_linux.go.
const randomTrap uintptr = 347
const (
getrandomTrap uintptr = 347
copyFileRangeTrap uintptr = 357
)