Debian Codegraph @

src/internal/runtime/sys/dit_arm64.s

raw
1 // Copyright 2024 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #include "textflag.h"
6
7 TEXT ·EnableDIT(SB),$0-1
8 MRS DIT, R0
9 UBFX $24, R0, $1, R1
10 MOVB R1, ret+0(FP)
11 MSR $1, DIT
12 RET
13
14 TEXT ·DITEnabled(SB),$0-1
15 MRS DIT, R0
16 UBFX $24, R0, $1, R1
17 MOVB R1, ret+0(FP)
18 RET
19
20 TEXT ·DisableDIT(SB),$0
21 MSR $0, DIT
22 RET