File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -363,15 +363,15 @@ ST5( mov v4.16b, vctr.16b )
363
363
adr x16 , 1f
364
364
sub x16 , x16 , x12 , lsl # 3
365
365
br x16
366
- hint 34 // bti c
366
+ bti c
367
367
mov v0.d [ 0 ], vctr.d [ 0 ]
368
- hint 34 // bti c
368
+ bti c
369
369
mov v1.d [ 0 ], vctr.d [ 0 ]
370
- hint 34 // bti c
370
+ bti c
371
371
mov v2.d [ 0 ], vctr.d [ 0 ]
372
- hint 34 // bti c
372
+ bti c
373
373
mov v3.d [ 0 ], vctr.d [ 0 ]
374
- ST5( hint 34 )
374
+ ST5( bti c )
375
375
ST5( mov v4.d [ 0 ], vctr.d [ 0 ] )
376
376
1 : b 2f
377
377
.previous
Original file line number Diff line number Diff line change @@ -790,6 +790,16 @@ alternative_endif
790
790
.Lnoyield_ \@:
791
791
.endm
792
792
793
+ /*
794
+ * Branch Target Identifier (BTI)
795
+ */
796
+ .macro bti , targets
797
+ .equ .L__bti_targets_c , 34
798
+ .equ .L__bti_targets_j , 36
799
+ .equ .L__bti_targets_jc ,38
800
+ hint #.L__bti_targets_ \targets
801
+ .endm
802
+
793
803
/*
794
804
* This macro emits a program property note section identifying
795
805
* architecture features which require special handling, mainly for
Original file line number Diff line number Diff line change 6
6
7
7
#if defined(CONFIG_ARM64_BTI_KERNEL ) && defined(__aarch64__ )
8
8
9
- /*
10
- * Since current versions of gas reject the BTI instruction unless we
11
- * set the architecture version to v8.5 we use the hint instruction
12
- * instead.
13
- */
14
- #define BTI_C hint 34 ;
9
+ #define BTI_C bti c ;
15
10
16
11
/*
17
12
* When using in-kernel BTI we need to ensure that PCS-conformant assembly
You can’t perform that action at this time.
0 commit comments