32 lines
995 B
Diff
32 lines
995 B
Diff
From 8617d4d44d055b19301a815ec070479d9e8e00ff Mon Sep 17 00:00:00 2001
|
|
From: zhaozhen <zhaozhen@loongson.cn>
|
|
Date: Fri, 6 Jan 2023 01:20:46 +0000
|
|
Subject: [PATCH] add loong64 support for etcd
|
|
|
|
---
|
|
.../engine/vendor/go.etcd.io/bbolt/bolt_loong64.go | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
create mode 100644 components/engine/vendor/go.etcd.io/bbolt/bolt_loong64.go
|
|
|
|
diff --git a/components/engine/vendor/go.etcd.io/bbolt/bolt_loong64.go b/components/engine/vendor/go.etcd.io/bbolt/bolt_loong64.go
|
|
new file mode 100644
|
|
index 00000000..aa8de7b1
|
|
--- /dev/null
|
|
+++ b/components/engine/vendor/go.etcd.io/bbolt/bolt_loong64.go
|
|
@@ -0,0 +1,12 @@
|
|
+// +build loong64
|
|
+
|
|
+package bbolt
|
|
+
|
|
+// maxMapSize represents the largest mmap size supported by Bolt.
|
|
+const maxMapSize = 0x8000000000 // 512GB
|
|
+
|
|
+// maxAllocSize is the size used when creating array pointers.
|
|
+const maxAllocSize = 0x7FFFFFFF
|
|
+
|
|
+// Are unaligned load/stores broken on this arch?
|
|
+var brokenUnaligned = false
|
|
--
|
|
2.33.0
|
|
|