@@ -61,11 +61,11 @@ macro_rules! svc1 {
6161 let arg0: u32 = $arg0;
6262 unsafe {
6363 core:: arch:: asm!(
64- "push {{ r7 }} // This is the frame pointer and we must save it" ,
64+ "push {{ r7 }} // This is the frame pointer and we must save it" ,
6565 "movs r7, r0 // Move into the now free r7" ,
6666 "svc {arg} // Do the SVCall" ,
67- "pop {{ r7 }} // Restore the frame pointer" ,
68- arg = const $num,
67+ "pop {{ r7 }} // Restore the frame pointer" ,
68+ arg = const $num,
6969 inout( "r0" ) arg0 => retval,
7070 out( "lr" ) _) ;
7171 }
@@ -85,11 +85,11 @@ macro_rules! svc2 {
8585 let arg1: u32 = $arg1;
8686 unsafe {
8787 core:: arch:: asm!(
88- "push {{ r7 }} // This is the frame pointer and we must save it" ,
88+ "push {{ r7 }} // This is the frame pointer and we must save it" ,
8989 "movs r7, {i} // Move into the now free r7" ,
9090 "svc {arg} // Do the SVCall" ,
91- "pop {{ r7 }} // Restore the frame pointer" ,
92- arg = const $num,
91+ "pop {{ r7 }} // Restore the frame pointer" ,
92+ arg = const $num,
9393 i = in( reg) arg0,
9494 inout( "r0" ) arg1 => retval,
9595 out( "lr" ) _) ;
@@ -111,11 +111,11 @@ macro_rules! svc3 {
111111 let arg2: u32 = $arg2;
112112 unsafe {
113113 core:: arch:: asm!(
114- "push {{ r7 }} // This is the frame pointer and we must save it" ,
114+ "push {{ r7 }} // This is the frame pointer and we must save it" ,
115115 "movs r7, {i} // Move into the now free r7" ,
116116 "svc {arg} // Do the SVCall" ,
117- "pop {{ r7 }} // Restore the frame pointer" ,
118- arg = const $num,
117+ "pop {{ r7 }} // Restore the frame pointer" ,
118+ arg = const $num,
119119 i = in( reg) arg0,
120120 inout( "r0" ) arg1 => retval,
121121 in( "r1" ) arg2,
@@ -139,11 +139,11 @@ macro_rules! svc4 {
139139 let arg3: u32 = $arg3;
140140 unsafe {
141141 core:: arch:: asm!(
142- "push {{ r7 }} // This is the frame pointer and we must save it" ,
142+ "push {{ r7 }} // This is the frame pointer and we must save it" ,
143143 "movs r7, {i} // Move into the now free r7" ,
144144 "svc {arg} // Do the SVCall" ,
145- "pop {{ r7 }} // Restore the frame pointer" ,
146- arg = const $num,
145+ "pop {{ r7 }} // Restore the frame pointer" ,
146+ arg = const $num,
147147 i = in( reg) arg0,
148148 inout( "r0" ) arg1 => retval,
149149 in( "r1" ) arg2,
@@ -169,11 +169,11 @@ macro_rules! svc5 {
169169 let arg4: u32 = $arg4;
170170 unsafe {
171171 core:: arch:: asm!(
172- "push {{ r7 }} // This is the frame pointer and we must save it" ,
172+ "push {{ r7 }} // This is the frame pointer and we must save it" ,
173173 "movs r7, {i} // Move into the now free r7" ,
174174 "svc {arg} // Do the SVCall" ,
175- "pop {{ r7 }} // Restore the frame pointer" ,
176- arg = const $num,
175+ "pop {{ r7 }} // Restore the frame pointer" ,
176+ arg = const $num,
177177 i = in( reg) arg0,
178178 inout( "r0" ) arg1 => retval,
179179 in( "r1" ) arg2,
@@ -201,11 +201,11 @@ macro_rules! svc6 {
201201 let arg5: u32 = $arg5;
202202 unsafe {
203203 core:: arch:: asm!(
204- "push {{ r7 }} // This is the frame pointer and we must save it" ,
204+ "push {{ r7 }} // This is the frame pointer and we must save it" ,
205205 "movs r7, {i} // Move into the now free r7" ,
206206 "svc {arg} // Do the SVCall" ,
207- "pop {{ r7 }} // Restore the frame pointer" ,
208- arg = const $num,
207+ "pop {{ r7 }} // Restore the frame pointer" ,
208+ arg = const $num,
209209 i = in( reg) arg0,
210210 inout( "r0" ) arg1 => retval,
211211 in( "r1" ) arg2,
0 commit comments