@@ -4,17 +4,15 @@ mod fs;
44pub mod sockets;
55pub use self :: fs:: * ;
66
7- pub const SOLID_BP_PROGRAM_EXITED : usize = 15 ;
8- pub const SOLID_BP_CSABORT : usize = 16 ;
9-
107#[ inline( always) ]
118pub fn breakpoint_program_exited ( tid : usize ) {
129 unsafe {
1310 match ( ) {
11+ // SOLID_BP_PROGRAM_EXITED = 15
1412 #[ cfg( target_arch = "arm" ) ]
15- ( ) => asm ! ( "bkpt #{}" , const SOLID_BP_PROGRAM_EXITED , in( "r0" ) tid) ,
13+ ( ) => asm ! ( "bkpt #15" , in( "r0" ) tid) ,
1614 #[ cfg( target_arch = "aarch64" ) ]
17- ( ) => asm ! ( "hlt #{}" , const SOLID_BP_PROGRAM_EXITED , in( "x0" ) tid) ,
15+ ( ) => asm ! ( "hlt #15" , in( "x0" ) tid) ,
1816 }
1917 }
2018}
@@ -23,10 +21,11 @@ pub fn breakpoint_program_exited(tid: usize) {
2321pub fn breakpoint_abort ( ) {
2422 unsafe {
2523 match ( ) {
24+ // SOLID_BP_CSABORT = 16
2625 #[ cfg( target_arch = "arm" ) ]
27- ( ) => asm ! ( "bkpt #{}" , const SOLID_BP_CSABORT ) ,
26+ ( ) => asm ! ( "bkpt #16" ) ,
2827 #[ cfg( target_arch = "aarch64" ) ]
29- ( ) => asm ! ( "hlt #{}" , const SOLID_BP_CSABORT ) ,
28+ ( ) => asm ! ( "hlt #16" ) ,
3029 }
3130 }
3231}
0 commit comments