@@ -70,10 +70,10 @@ pub unsafe fn __ldrex(p: *const u32) -> u32 {
70
70
#[ cfg(
71
71
target_feature = "v6k" , // includes v7-M but excludes v6-M
72
72
) ]
73
- pub unsafe fn __strexb ( value : u32 , addr : * const u8 ) -> u32 {
73
+ pub unsafe fn __strexb ( value : u32 , addr : * mut u8 ) -> u32 {
74
74
extern "C" {
75
75
#[ link_name = "llvm.arm.strex.p0i8" ]
76
- fn strex8 ( value : u32 , addr : * const u8 ) -> u32 ;
76
+ fn strex8 ( value : u32 , addr : * mut u8 ) -> u32 ;
77
77
}
78
78
79
79
strex8 ( value, addr)
@@ -87,10 +87,10 @@ pub unsafe fn __strexb(value: u32, addr: *const u8) -> u32 {
87
87
#[ cfg(
88
88
target_feature = "v6k" , // includes v7-M but excludes v6-M
89
89
) ]
90
- pub unsafe fn __strexh ( value : u16 , addr : * const u16 ) -> u32 {
90
+ pub unsafe fn __strexh ( value : u16 , addr : * mut u16 ) -> u32 {
91
91
extern "C" {
92
92
#[ link_name = "llvm.arm.strex.p0i16" ]
93
- fn strex16 ( value : u32 , addr : * const u16 ) -> u32 ;
93
+ fn strex16 ( value : u32 , addr : * mut u16 ) -> u32 ;
94
94
}
95
95
96
96
strex16 ( value as u32 , addr)
@@ -105,10 +105,10 @@ pub unsafe fn __strexh(value: u16, addr: *const u16) -> u32 {
105
105
all( target_feature = "v6" , not( target_feature = "mclass" ) ) , // excludes v6-M
106
106
all( target_feature = "v7" , target_feature = "mclass" ) , // v7-M
107
107
) ) ]
108
- pub unsafe fn __strex ( value : u32 , addr : * const u32 ) -> u32 {
108
+ pub unsafe fn __strex ( value : u32 , addr : * mut u32 ) -> u32 {
109
109
extern "C" {
110
110
#[ link_name = "llvm.arm.strex.p0i32" ]
111
- fn strex32 ( value : u32 , addr : * const u32 ) -> u32 ;
111
+ fn strex32 ( value : u32 , addr : * mut u32 ) -> u32 ;
112
112
}
113
113
114
114
strex32 ( value, addr)
0 commit comments