From 172780687795638290f94acabf99246cf46f4b1f Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Tue, 28 May 2019 00:25:52 +0100 Subject: [PATCH] Add support for riscv64 arch. (#159) All tests pass. --- bolt_riscv64.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bolt_riscv64.go diff --git a/bolt_riscv64.go b/bolt_riscv64.go new file mode 100644 index 0000000..2d962d3 --- /dev/null +++ b/bolt_riscv64.go @@ -0,0 +1,10 @@ +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 + +// Are unaligned load/stores broken on this arch? +var brokenUnaligned = true