ARM: correctly store kernel_info_struct pointer
This commit is contained in:
parent
b3250450fe
commit
e52ecfbf5d
1 changed files with 2 additions and 3 deletions
|
@ -49,9 +49,8 @@ ENTRY(_minix_kernel_info_struct)
|
||||||
mov r0, #MINIX_KERNINFO /* kerninfo() */
|
mov r0, #MINIX_KERNINFO /* kerninfo() */
|
||||||
mov r3, #IPCVEC /* r3 determines the SVC type */
|
mov r3, #IPCVEC /* r3 determines the SVC type */
|
||||||
svc #0 /* trap to kernel */
|
svc #0 /* trap to kernel */
|
||||||
pop {r0} /* r0 = return struct ptr */
|
pop {r2} /* r2 = return struct ptr (was r0) */
|
||||||
ldr r0, [r0]
|
str r1, [r2]
|
||||||
mov r0, r1
|
|
||||||
pop {fp}
|
pop {fp}
|
||||||
bx lr
|
bx lr
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue