mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-23 17:40:20 +03:00
9d0df426da
* feat: vendor minio client * feat: introduce storage package with s3 support * feat: serve s3 files directly this saves a lot of bandwith as the files are fetched from the object store directly * fix: use explicit local storage in tests * feat: integrate s3 storage with the main server * fix: add s3 config to cli tests * docs: explicitly set values in example config also adds license header to the storage package * fix: use better http status code on s3 redirect HTTP 302 Found is the best fit, as it signifies that the resource requested was found but not under its presumed URL 307/TemporaryRedirect would mean that this resource is usually located here, not in this case 303/SeeOther indicates that the redirection does not link to the requested resource but to another page * refactor: use context in storage driver interface
26 lines
837 B
ArmAsm
26 lines
837 B
ArmAsm
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
|
|
|
|
//+build arm64,!gccgo
|
|
|
|
// See https://www.kernel.org/doc/Documentation/arm64/cpu-feature-registers.txt
|
|
|
|
// func getMidr
|
|
TEXT ·getMidr(SB), 7, $0
|
|
WORD $0xd5380000 // mrs x0, midr_el1 /* Main ID Register */
|
|
MOVD R0, midr+0(FP)
|
|
RET
|
|
|
|
// func getProcFeatures
|
|
TEXT ·getProcFeatures(SB), 7, $0
|
|
WORD $0xd5380400 // mrs x0, id_aa64pfr0_el1 /* Processor Feature Register 0 */
|
|
MOVD R0, procFeatures+0(FP)
|
|
RET
|
|
|
|
// func getInstAttributes
|
|
TEXT ·getInstAttributes(SB), 7, $0
|
|
WORD $0xd5380600 // mrs x0, id_aa64isar0_el1 /* Instruction Set Attribute Register 0 */
|
|
WORD $0xd5380621 // mrs x1, id_aa64isar1_el1 /* Instruction Set Attribute Register 1 */
|
|
MOVD R0, instAttrReg0+0(FP)
|
|
MOVD R1, instAttrReg1+8(FP)
|
|
RET
|
|
|