
Instead of importing an external _minix_kerninfo variable, any code using the shared kernel page should now call get_minix_kerninfo(3). Since this is the only logical name for such a function, rename the previous get_minix_kerninfo call to ipc_minix_kerninfo. Change-Id: I2e424b6fb55aa55d3da850187f1f7a0b7cbbf910
18 lines
382 B
ArmAsm
18 lines
382 B
ArmAsm
#include <minix/ipcconst.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(ipc_minix_kerninfo)
|
|
push {fp}
|
|
mov fp, sp
|
|
push {r0}
|
|
mov r1, #0
|
|
mov r2, #0
|
|
mov r0, #MINIX_KERNINFO /* _ipc_minix_kerninfo() */
|
|
mov r3, #IPCVEC_INTR /* r3 determines the SVC type */
|
|
svc #0 /* trap to kernel */
|
|
pop {r2} /* r2 = return struct ptr (was r0) */
|
|
str r1, [r2]
|
|
pop {fp}
|
|
bx lr
|
|
|