9
9
/// low-power state until one of a number of asynchronous events occurs.
10
10
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M
11
11
// LLVM says "instruction requires: armv6k"
12
- #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" ) ) ]
12
+ #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
13
+ #[ doc( cfg( target_arch = "arm" ) ) ]
13
14
#[ inline( always) ]
14
15
pub unsafe fn __wfi ( ) {
15
16
hint ( HINT_WFI ) ;
@@ -22,7 +23,8 @@ pub unsafe fn __wfi() {
22
23
/// another processor.
23
24
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M
24
25
// LLVM says "instruction requires: armv6k"
25
- #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" ) ) ]
26
+ #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
27
+ #[ doc( cfg( target_arch = "arm" ) ) ]
26
28
#[ inline( always) ]
27
29
pub unsafe fn __wfe ( ) {
28
30
hint ( HINT_WFE ) ;
@@ -34,7 +36,8 @@ pub unsafe fn __wfe() {
34
36
/// system. It is a NOP on a uniprocessor system.
35
37
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M, 7-M
36
38
// LLVM says "instruction requires: armv6k"
37
- #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" ) ) ]
39
+ #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
40
+ #[ doc( cfg( target_arch = "aarch64" ) ) ]
38
41
#[ inline( always) ]
39
42
pub unsafe fn __sev ( ) {
40
43
hint ( HINT_SEV ) ;
@@ -49,7 +52,9 @@ pub unsafe fn __sev() {
49
52
#[ cfg( any(
50
53
target_feature = "v8" , // 32-bit ARMv8
51
54
target_arch = "aarch64" , // AArch64
55
+ doc,
52
56
) ) ]
57
+ #[ doc( cfg( target_arch = "aarch64" ) ) ]
53
58
#[ inline( always) ]
54
59
pub unsafe fn __sevl ( ) {
55
60
hint ( HINT_SEVL ) ;
@@ -62,7 +67,8 @@ pub unsafe fn __sevl() {
62
67
/// improve overall system performance.
63
68
// Section 10.1 of ACLE says that the supported arches are: 8, 6K, 6-M
64
69
// LLVM says "instruction requires: armv6k"
65
- #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" ) ) ]
70
+ #[ cfg( any( target_feature = "v6" , target_arch = "aarch64" , doc) ) ]
71
+ #[ doc( cfg( target_arch = "aarch64" ) ) ]
66
72
#[ inline( always) ]
67
73
pub unsafe fn __yield ( ) {
68
74
hint ( HINT_YIELD ) ;
0 commit comments