mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-27 15:21:07 +08:00
internal/syscall/unix: define copyFileRangeTrap for all architectures
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/246363
This commit is contained in:
parent
6c4763fa5b
commit
d8ea6acb5f
@ -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.
|
||||
|
@ -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
|
||||
)
|
@ -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
|
||||
)
|
@ -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
|
||||
|
@ -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
|
||||
)
|
@ -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
|
||||
)
|
@ -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
|
||||
)
|
@ -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
|
||||
)
|
@ -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
|
||||
)
|
@ -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
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user