summaryrefslogtreecommitdiff
path: root/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_be.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/cilium/ebpf/internal/sys/ptr_32_be.go')
-rw-r--r--vendor/github.com/cilium/ebpf/internal/sys/ptr_32_be.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_be.go b/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_be.go
new file mode 100644
index 000000000..df903d780
--- /dev/null
+++ b/vendor/github.com/cilium/ebpf/internal/sys/ptr_32_be.go
@@ -0,0 +1,15 @@
+//go:build armbe || mips || mips64p32
+// +build armbe mips mips64p32
+
+package sys
+
+import (
+ "unsafe"
+)
+
+// Pointer wraps an unsafe.Pointer to be 64bit to
+// conform to the syscall specification.
+type Pointer struct {
+ pad uint32
+ ptr unsafe.Pointer
+}