@@ -4,17 +4,15 @@ mod fs;
4
4
pub mod sockets;
5
5
pub use self :: fs:: * ;
6
6
7
- pub const SOLID_BP_PROGRAM_EXITED : usize = 15 ;
8
- pub const SOLID_BP_CSABORT : usize = 16 ;
9
-
10
7
#[ inline( always) ]
11
8
pub fn breakpoint_program_exited ( tid : usize ) {
12
9
unsafe {
13
10
match ( ) {
11
+ // SOLID_BP_PROGRAM_EXITED = 15
14
12
#[ cfg( target_arch = "arm" ) ]
15
- ( ) => asm ! ( "bkpt #{}" , const SOLID_BP_PROGRAM_EXITED , in( "r0" ) tid) ,
13
+ ( ) => asm ! ( "bkpt #15" , in( "r0" ) tid) ,
16
14
#[ cfg( target_arch = "aarch64" ) ]
17
- ( ) => asm ! ( "hlt #{}" , const SOLID_BP_PROGRAM_EXITED , in( "x0" ) tid) ,
15
+ ( ) => asm ! ( "hlt #15" , in( "x0" ) tid) ,
18
16
}
19
17
}
20
18
}
@@ -23,10 +21,11 @@ pub fn breakpoint_program_exited(tid: usize) {
23
21
pub fn breakpoint_abort ( ) {
24
22
unsafe {
25
23
match ( ) {
24
+ // SOLID_BP_CSABORT = 16
26
25
#[ cfg( target_arch = "arm" ) ]
27
- ( ) => asm ! ( "bkpt #{}" , const SOLID_BP_CSABORT ) ,
26
+ ( ) => asm ! ( "bkpt #16" ) ,
28
27
#[ cfg( target_arch = "aarch64" ) ]
29
- ( ) => asm ! ( "hlt #{}" , const SOLID_BP_CSABORT ) ,
28
+ ( ) => asm ! ( "hlt #16" ) ,
30
29
}
31
30
}
32
31
}
0 commit comments