From 5e051669d117d7cd9b24cea3494959eec396ec1e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 25 Jan 2020 22:37:25 -0800 Subject: [PATCH] /bolt_riscv64: Add support for riscv64 Upstream-Status: Pending Signed-off-by: Khem Raj --- vendor/github.com/boltdb/bolt/bolt_riscv64.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor/github.com/boltdb/bolt/bolt_riscv64.go diff --git a/vendor/github.com/boltdb/bolt/bolt_riscv64.go b/vendor/github.com/boltdb/bolt/bolt_riscv64.go new file mode 100644 index 00000000..3d6b88d4 --- /dev/null +++ b/vendor/github.com/boltdb/bolt/bolt_riscv64.go @@ -0,0 +1,12 @@ +// +build riscv64 + +package bolt + +// 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 + +// Are unaligned load/stores broken on this arch? +var brokenUnaligned = false -- 2.25.0