From: Thomas Veerman Date: Wed, 23 Jan 2013 13:56:48 +0000 (+0100) Subject: ARM: correctly store kernel_info_struct pointer X-Git-Tag: v3.2.1~67 X-Git-Url: http://zhaoyanbai.com/repos//%22http:/www.isc.org/%22?a=commitdiff_plain;h=e52ecfbf5d6d5e00dcabdf0a8ef82d4dd0a87b88;p=minix.git ARM: correctly store kernel_info_struct pointer --- diff --git a/lib/libc/arch/arm/sys-minix/_ipc.S b/lib/libc/arch/arm/sys-minix/_ipc.S index 352f33ce8..74499d38c 100644 --- a/lib/libc/arch/arm/sys-minix/_ipc.S +++ b/lib/libc/arch/arm/sys-minix/_ipc.S @@ -49,9 +49,8 @@ ENTRY(_minix_kernel_info_struct) mov r0, #MINIX_KERNINFO /* kerninfo() */ mov r3, #IPCVEC /* r3 determines the SVC type */ svc #0 /* trap to kernel */ - pop {r0} /* r0 = return struct ptr */ - ldr r0, [r0] - mov r0, r1 + pop {r2} /* r2 = return struct ptr (was r0) */ + str r1, [r2] pop {fp} bx lr