From d03e4a480ba9f954ebe077981202c811e21640e9 Mon Sep 17 00:00:00 2001
From: yangyanchao <yangyanchao6@huawei.com>
Date: Tue, 15 Dec 2020 03:24:47 +0000
Subject: [PATCH 2/2] containerd-add-sys-symbol-to-support-riscv

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

diff --git a/vendor/go.etcd.io/bbolt/bolt_riscv64.go b/vendor/go.etcd.io/bbolt/bolt_riscv64.go
new file mode 100644
index 0000000..5f1c364
--- /dev/null
+++ b/vendor/go.etcd.io/bbolt/bolt_riscv64.go
@@ -0,0 +1,12 @@
+// +build riscv64
+
+package bbolt
+
+// maxMapSize represents the latgest mmap size supported by Bolt.
+const maxMapSize = 0xFFFFFFFFFFFF // 256TB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false
-- 
2.23.0

