root/sys/arch/i386/stand/efiboot/bootia32/multiboot32.S
/*      $NetBSD: multiboot32.S,v 1.3 2026/05/21 16:59:03 riastradh Exp $ */

#include <machine/asm.h>
#include <machine/specialreg.h>

        .align  16
        .globl _C_LABEL(multiboot32_size)
_C_LABEL(multiboot32_size):
        .long multiboot32_end - _C_LABEL(multiboot32_start)

        .text
        .p2align 4,,15

/*
 * multiboot32(entry 4(%esp), multiboot2_info 8(%esp), magic 12(%esp))
 */
ENTRY(multiboot32_start)
start:
        movl    12(%esp),%eax
        movl    8(%esp),%ebx
        movl    4(%esp),%edx
        jmp    *%edx
multiboot32_end: