mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #2712 from lubinszARM:pr_sigfp_init
PiperOrigin-RevId: 315599736
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package arch
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
@@ -49,9 +48,14 @@ const ARMTrapFlag = uint64(1) << 21
|
||||
type aarch64FPState []byte
|
||||
|
||||
// initAarch64FPState sets up initial state.
|
||||
//
|
||||
// Related code in Linux kernel: fpsimd_flush_thread().
|
||||
// FPCR = FPCR_RM_RN (0x0 << 22).
|
||||
//
|
||||
// Currently, aarch64FPState is only a space of 0x210 length for fpstate.
|
||||
// The fp head is useless in sentry/ptrace/kvm.
|
||||
//
|
||||
func initAarch64FPState(data aarch64FPState) {
|
||||
binary.LittleEndian.PutUint32(data, fpsimdMagic)
|
||||
binary.LittleEndian.PutUint32(data[4:], fpsimdContextSize)
|
||||
}
|
||||
|
||||
func newAarch64FPStateSlice() []byte {
|
||||
|
||||
Reference in New Issue
Block a user