mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-30 04:04:43 +01:00
a156188b3e
* update dependencies, bump Go version to 1.19 * bump test image Go version * update golangci-lint * update gotosocial-drone-build * sign * linting, go fmt * update swagger docs * update swagger docs * whitespace * update contributing.md * fuckin whoopsie doopsie * linterino, linteroni * fix followrequest test not starting processor * fix other api/client tests not starting processor * fix remaining tests where processor not started * bump go-runners version * don't check last-webfingered-at, processor may have updated this * update swagger command * update bun to latest version * fix embed to work the same as before with new bun Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: tsmethurst <tobi.smethurst@protonmail.com>
27 lines
855 B
ArmAsm
27 lines
855 B
ArmAsm
// Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file.
|
|
|
|
//+build arm64,!gccgo,!noasm,!appengine
|
|
|
|
// 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
|
|
|