bolt
bolt copied to clipboard
Add mips64 and mips64le support
As the title say, please add specific files for these architectures. I would do that but I have no idea where we can get the matching maxMapSize
and maxAllocSize
.
diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64.go b/vendor/github.com/boltdb/bolt/bolt_mips64.go
new file mode 100644
index 0000000..c1dfbac
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_mips64.go
@@ -0,0 +1,8 @@
+// +build mips64
+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
diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64le.go b/vendor/github.com/boltdb/bolt/bolt_mips64le.go
new file mode 100644
index 0000000..45be694
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_mips64le.go
@@ -0,0 +1,8 @@
+// +build mips64le
+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
this helped to get it compiling, but idk if these are sane values.
I also have the same issue for misp32 and misple. I fixed the compilation in a similar way as @tboerger did, but I came accross issue #646 (with undefined madvise
function) on run.
Sadly, I don't have a clue about what to change to make this work :-/
EDIT, I just noticed that #663 should answer the first part of my issue.