1#include <minix/ipcconst.h> 2#include <machine/asm.h> 3 4ENTRY(ipc_minix_kerninfo) 5 push %ebp 6 movl %esp, %ebp 7 push %ebx 8 movl $0, %eax 9 movl $0, %ebx 10 movl $MINIX_KERNINFO, %ecx 11 int $IPCVEC_INTR /* trap to the kernel */ 12 movl 8(%ebp), %ecx /* ecx = return struct ptr */ 13 movl %ebx, (%ecx) 14 pop %ebx 15 pop %ebp 16 ret 17 18