diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-24 23:28:27 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-24 23:28:27 +0000 |
commit | 2c162960686cc4c0e9a1b58f9494b48ed64c5f35 (patch) | |
tree | 8c1d2aa436e01ef338a2ba3250f523fa3e9186e9 /pkg/sentry/platform/ring0 | |
parent | d9489085267288cff57491999d6deed3ad2efda2 (diff) | |
parent | 10725475c3d3b130b5ea516da6fcbb0b6119a6ac (diff) |
Merge release-20200323.0-246-g1072547 (automated)
Diffstat (limited to 'pkg/sentry/platform/ring0')
-rwxr-xr-x | pkg/sentry/platform/ring0/defs_impl_arm64.go | 12 | ||||
-rwxr-xr-x | pkg/sentry/platform/ring0/lib_arm64.go | 4 |
2 files changed, 11 insertions, 5 deletions
diff --git a/pkg/sentry/platform/ring0/defs_impl_arm64.go b/pkg/sentry/platform/ring0/defs_impl_arm64.go index 829f3d78b..e29d62f04 100755 --- a/pkg/sentry/platform/ring0/defs_impl_arm64.go +++ b/pkg/sentry/platform/ring0/defs_impl_arm64.go @@ -1,13 +1,13 @@ package ring0 import ( + "syscall" + "fmt" + "gvisor.dev/gvisor/pkg/sentry/platform/ring0/pagetables" "gvisor.dev/gvisor/pkg/usermem" "io" "reflect" - "syscall" - - "gvisor.dev/gvisor/pkg/sentry/platform/ring0/pagetables" ) // Useful bits. @@ -295,6 +295,12 @@ func (c *CPU) SetAppAddr(value uintptr) { c.appAddr = value } +// GetLazyVFP returns the value of cpacr_el1. +//go:nosplit +func (c *CPU) GetLazyVFP() (value uintptr) { + return c.lazyVFP +} + // SwitchArchOpts are embedded in SwitchOpts. type SwitchArchOpts struct { // UserASID indicates that the application ASID to be used on switch, diff --git a/pkg/sentry/platform/ring0/lib_arm64.go b/pkg/sentry/platform/ring0/lib_arm64.go index 242b9305c..444a83913 100755 --- a/pkg/sentry/platform/ring0/lib_arm64.go +++ b/pkg/sentry/platform/ring0/lib_arm64.go @@ -20,13 +20,13 @@ package ring0 func CPACREL1() (value uintptr) // FPCR returns the value of FPCR register. -func FPCR() (value uintptr) +func GetFPCR() (value uintptr) // SetFPCR writes the FPCR value. func SetFPCR(value uintptr) // FPSR returns the value of FPSR register. -func FPSR() (value uintptr) +func GetFPSR() (value uintptr) // SetFPSR writes the FPSR value. func SetFPSR(value uintptr) |