Implement go-gitea/gitea#1107 and go-gitea/gitea#815 fixes for building bolt on mips platforms.

This commit is contained in:
Antoine GIRARD
2017-04-11 11:19:01 +02:00
committed by Antoine GIRARD
parent e9cf4fae01
commit 606636ed5f
4 changed files with 44 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// +build mips
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
// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
+11
View File
@@ -0,0 +1,11 @@
// +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
// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
+11
View File
@@ -0,0 +1,11 @@
// +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
// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false
+11
View File
@@ -0,0 +1,11 @@
// +build 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
// brokenUnaligned Are unaligned load/stores broken on this arch?
var brokenUnaligned = false