blob: 34ec9876f88c5cd6a766855a0af4828c20362051 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
From f0fb80604385ae3266a472601ef685896b4cc0af Mon Sep 17 00:00:00 2001
From: Vladimir Stefanovic <vladimir.stefanovic@imgtec.com>
Date: Fri, 17 Feb 2017 20:44:43 +0100
Subject: [PATCH] Add support for mips, mips64
---
Upstream-Status: Submitted
Signed-off-by: Khem Raj <raj.khem@gmail.com>
vendor/github.com/boltdb/bolt/bolt_mips64x.go | 12 ++++++++++++
vendor/github.com/boltdb/bolt/bolt_mipsx.go | 12 ++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 vendor/github.com/boltdb/bolt/bolt_mips64x.go
create mode 100644 vendor/github.com/boltdb/bolt/bolt_mipsx.go
diff --git a/vendor/github.com/boltdb/bolt/bolt_mips64x.go b/vendor/github.com/boltdb/bolt/bolt_mips64x.go
new file mode 100644
index 00000000..134b578b
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_mips64x.go
@@ -0,0 +1,12 @@
+// +build mips64 mips64le
+
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0x8000000000 // 512GB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0x7FFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false
diff --git a/vendor/github.com/boltdb/bolt/bolt_mipsx.go b/vendor/github.com/boltdb/bolt/bolt_mipsx.go
new file mode 100644
index 00000000..d5ecb059
--- /dev/null
+++ b/vendor/github.com/boltdb/bolt/bolt_mipsx.go
@@ -0,0 +1,12 @@
+// +build mips mipsle
+
+package bolt
+
+// maxMapSize represents the largest mmap size supported by Bolt.
+const maxMapSize = 0x40000000 // 1GB
+
+// maxAllocSize is the size used when creating array pointers.
+const maxAllocSize = 0xFFFFFFF
+
+// Are unaligned load/stores broken on this arch?
+var brokenUnaligned = false
--
2.14.1
|