1/* $NetBSD: multiboot32.S,v 1.2 2019/09/24 00:47:46 manu Exp $ */ 2 3#include <machine/asm.h> 4#include <machine/specialreg.h> 5 6 .align 16 7 .globl _C_LABEL(multiboot32) 8_C_LABEL(multiboot32): 9 .quad 0 10 11 .globl _C_LABEL(multiboot32_size) 12_C_LABEL(multiboot32_size): 13 .long multiboot32_end - _C_LABEL(multiboot32_start) 14 15 .text 16 .p2align 4,,15 17 18/* 19 * multiboot32(entry 4(%esp), multiboot2_info 8(%esp), magic 12(%esp)) 20 */ 21ENTRY(multiboot32_start) 22start: 23 movl 12(%esp),%eax 24 movl 8(%esp),%ebx 25 movl 4(%esp),%edx 26 jmp *%edx 27multiboot32_end: 28