summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/platform/ring0
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/platform/ring0')
-rw-r--r--pkg/sentry/platform/ring0/lib_arm64.go8
-rw-r--r--pkg/sentry/platform/ring0/lib_arm64.s4
2 files changed, 6 insertions, 6 deletions
diff --git a/pkg/sentry/platform/ring0/lib_arm64.go b/pkg/sentry/platform/ring0/lib_arm64.go
index 3f3ab5cfb..8bcfe1032 100644
--- a/pkg/sentry/platform/ring0/lib_arm64.go
+++ b/pkg/sentry/platform/ring0/lib_arm64.go
@@ -19,14 +19,14 @@ package ring0
// CPACREL1 returns the value of the CPACR_EL1 register.
func CPACREL1() (value uintptr)
-// GetFPCR returns the value of FPCR register.
-func GetFPCR() (value uintptr)
+// FPCR returns the value of FPCR register.
+func FPCR() (value uintptr)
// SetFPCR writes the FPCR value.
func SetFPCR(value uintptr)
-// GetFPSR returns the value of FPSR register.
-func GetFPSR() (value uintptr)
+// FPSR returns the value of FPSR register.
+func FPSR() (value uintptr)
// SetFPSR writes the FPSR value.
func SetFPSR(value uintptr)
diff --git a/pkg/sentry/platform/ring0/lib_arm64.s b/pkg/sentry/platform/ring0/lib_arm64.s
index 7c96e8e9c..1c9171004 100644
--- a/pkg/sentry/platform/ring0/lib_arm64.s
+++ b/pkg/sentry/platform/ring0/lib_arm64.s
@@ -17,7 +17,7 @@ TEXT ·CPACREL1(SB),NOSPLIT,$0-8
MOVD R1, ret+0(FP)
RET
-TEXT ·GetFPCR(SB),NOSPLIT,$0-8
+TEXT ·FPCR(SB),NOSPLIT,$0-8
WORD $0xd53b4201 // MRS NZCV, R1
MOVD R1, ret+0(FP)
RET
@@ -27,7 +27,7 @@ TEXT ·GetFPSR(SB),NOSPLIT,$0-8
MOVD R1, ret+0(FP)
RET
-TEXT ·SetFPCR(SB),NOSPLIT,$0-8
+TEXT ·FPCR(SB),NOSPLIT,$0-8
MOVD addr+0(FP), R1
WORD $0xd51b4201 // MSR R1, NZCV
RET