Lines Matching refs:r0
48 mov lr, r0
51 ldr r0, =_kernel
52 ldr r0, [r0, #_kernel_offset_to_current]
57 ldr r0, [r0, r1] /* priv stack ptr */
59 add r0, r0, r1
63 ldr r0, [r0, #_thread_offset_to_priv_stack_start] /* priv stack ptr */
65 add r0, r0, ip
67 ldr r0, [r0, #_thread_offset_to_priv_stack_start] /* priv stack ptr */
69 add r0, r0, ip
73 str r0, [ip, #_thread_offset_to_priv_stack_end] /* priv stack end */
83 mov sp, r0
93 msr PSP, r0
104 ldr r0, =_kernel
105 ldr r0, [r0, #_kernel_offset_to_current]
106 ldr r0, [r0, #_thread_offset_to_priv_stack_start] /* priv stack ptr */
107 msr PSPLIM, r0
114 push {r0,r1}
117 push {r0,ip}
134 ldr r0, =_kernel
135 ldr r0, [r0, #_kernel_offset_to_current]
139 pop {r0,r3}
142 ldr r0, [r3]
146 push {r0,r3}
149 pop {r0,ip}
152 ldr r0, [ip]
155 push {r0,ip}
169 pop {r0, r1}
173 pop {r0,ip}
177 add r0, r0, ip /* calculate top of stack */
196 mov sp, r0
218 push {r0, ip}
221 mov r0, #_EXC_PENDSV_PRIO_MASK
222 msr BASEPRI_MAX, r0
226 ldr r0, =_kernel
227 ldr r0, [r0, #_kernel_offset_to_current]
228 ldr r0, [r0, #_thread_offset_to_stack_info_start]
229 msr PSPLIM, r0
231 pop {r0, ip}
235 msr PSP, r0
245 mov r0, lr
253 push {r0, r1, r2, r3}
254 ldr r0, =_kernel
255 ldr r0, [r0, #_kernel_offset_to_current]
257 ldr r1, [r0, r1]
265 str r1, [r0, r2]
267 push {r0, r1}
268 ldr r0, =_kernel
269 ldr r0, [r0, #_kernel_offset_to_current]
270 ldr r1, [r0, #_thread_offset_to_mode]
275 str r1, [r0, #_thread_offset_to_mode]
287 pop {r0, r1, r2, r3}
289 pop {r0, r1}
294 push {r0, r1}
295 ldr r0, =z_thread_entry
296 mov ip, r0
297 pop {r0, r1}
335 push {r0,r1}
337 ldr r0, =_kernel
338 ldr r0, [r0, #_kernel_offset_to_current]
339 adds r0, r0, #_thread_offset_to_priv_stack_start
340 ldr r0, [r0] /* priv stack ptr */
342 add r0, r1
345 subs r0, #8
347 str r1, [r0, #0]
349 str r1, [r0, #4]
350 mov ip, r0
352 pop {r0, r1}
404 mov ip, r0
406 ldr r0, =K_SYSCALL_BAD
407 cmp r6, r0
417 mov r0, ip
429 ldr r0, =_k_syscall_table
431 add r0, r6
432 ldr r0, [r0] /* load table address */
435 mov ip, r0
436 mov r0, r1
444 mov ip, r0
445 mov r0, sp
446 ldr r0, [r0,#16]
447 mov lr, r0
449 mov r0, ip
517 mov ip, r0
518 mov r0, sp
519 ldr r0, [r0,#12]
520 msr PSP, r0
522 mov r0, ip
536 push {r0, r1}
539 ldr r0, =_kernel
540 ldr r0, [r0, #_kernel_offset_to_current]
542 ldr r1, [r0, r2]
546 str r1, [r0, r2]
555 ldr r0, =_kernel
556 ldr r0, [r0, #_kernel_offset_to_current]
557 ldr r1, [r0, #_thread_offset_to_mode]
560 str r1, [r0, #_thread_offset_to_mode]
575 pop {r0, r1}
591 mov ip, r0
593 mov r0, r8
595 orrs r0, r0, r1
599 mov ip, r0
600 mov r0, r1
645 push {r0, r1, r2, r4, r5, lr}
662 ldrb r5, [r0, r3]
690 mov r0, r3