
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
315 B
ArmAsm
18 lines
315 B
ArmAsm
#include <minix/ipcconst.h>
|
|
#include <machine/asm.h>
|
|
|
|
ENTRY(ipc_minix_kerninfo)
|
|
push %ebp
|
|
movl %esp, %ebp
|
|
push %ebx
|
|
movl $0, %eax
|
|
movl $0, %ebx
|
|
movl $MINIX_KERNINFO, %ecx
|
|
int $IPCVEC_INTR /* trap to the kernel */
|
|
movl 8(%ebp), %ecx /* ecx = return struct ptr */
|
|
movl %ebx, (%ecx)
|
|
pop %ebx
|
|
pop %ebp
|
|
ret
|
|
|