mirror of
https://github.com/go-gitea/bolt.git
synced 2026-07-01 20:35:22 -04:00
Implement go-gitea/gitea#1107 and go-gitea/gitea#815 fixes for building bolt on mips platforms.
This commit is contained in:
committed by
Antoine GIRARD
parent
e9cf4fae01
commit
606636ed5f
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user