diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/internal/runtime/sys/dit_arm64.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/internal/runtime/sys/dit_arm64.s b/src/internal/runtime/sys/dit_arm64.s index c27dfc9af3..408b60c8c0 100644 --- a/src/internal/runtime/sys/dit_arm64.s +++ b/src/internal/runtime/sys/dit_arm64.s @@ -9,6 +9,11 @@ TEXT ·EnableDIT(SB),$0-1 UBFX $24, R0, $1, R1 MOVB R1, ret+0(FP) MSR $1, DIT + // TODO(roland): the SB instruction is significantly more + // performant when available. We should detect its availability + // and use it when we can. + DSB $7 // nsh + ISB $15 // sy RET TEXT ·DITEnabled(SB),$0-1 |
