From 1dea428808d6a7bbc01c891649bad93adb012eb0 Mon Sep 17 00:00:00 2001
From: Jingyun Hua <huajingyun@loongson.cn>
Date: Thu, 1 Jun 2023 06:52:55 +0000
Subject: [PATCH] bbolt:add loong64 support

---
 vendor/go.etcd.io/bbolt/bolt_loong64.go | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 vendor/go.etcd.io/bbolt/bolt_loong64.go

diff --git a/vendor/go.etcd.io/bbolt/bolt_loong64.go b/vendor/go.etcd.io/bbolt/bolt_loong64.go
new file mode 100644
index 0000000..31c17c1
--- /dev/null
+++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go
@@ -0,0 +1,10 @@
+//go:build loong64
+// +build loong64
+
+package bbolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
-- 
2.33.0
