1*4a5d661aSToomas Soome/* 2*4a5d661aSToomas Soome * This file and its contents are supplied under the terms of the 3*4a5d661aSToomas Soome * Common Development and Distribution License ("CDDL"), version 1.0. 4*4a5d661aSToomas Soome * You may only use this file in accordance with the terms of version 5*4a5d661aSToomas Soome * 1.0 of the CDDL. 6*4a5d661aSToomas Soome * 7*4a5d661aSToomas Soome * A full copy of the text of the CDDL should have accompanied this 8*4a5d661aSToomas Soome * source. A copy of the CDDL is also available via the Internet at 9*4a5d661aSToomas Soome * http://www.illumos.org/license/CDDL. 10*4a5d661aSToomas Soome */ 11*4a5d661aSToomas Soome 12*4a5d661aSToomas Soome/* 13*4a5d661aSToomas Soome * Copyright 2015 Toomas Soome <tsoome@me.com> 14*4a5d661aSToomas Soome */ 15*4a5d661aSToomas Soome 16*4a5d661aSToomas Soome .file "multiboot.s" 17*4a5d661aSToomas Soome 18*4a5d661aSToomas Soome/* 19*4a5d661aSToomas Soome * Provide fake multiboot header to support versioning and partition 20*4a5d661aSToomas Soome * start. 21*4a5d661aSToomas Soome */ 22*4a5d661aSToomas Soome 23*4a5d661aSToomas Soome#define ASM_FILE 24*4a5d661aSToomas Soome#include <multiboot.h> 25*4a5d661aSToomas Soome 26*4a5d661aSToomas Soome .globl mb_header, start_sector 27*4a5d661aSToomas Soome .text 28*4a5d661aSToomas Soome 29*4a5d661aSToomas Soome .align 4 30*4a5d661aSToomas Soomemb_header: 31*4a5d661aSToomas Soome .long MULTIBOOT_HEADER_MAGIC 32*4a5d661aSToomas Soome .long MULTIBOOT_AOUT_KLUDGE 33*4a5d661aSToomas Soome .long -(MULTIBOOT_HEADER_MAGIC + MULTIBOOT_AOUT_KLUDGE) 34*4a5d661aSToomas Soome .long 0 /* header_addr */ 35*4a5d661aSToomas Soome .long 0 /* load_addr */ 36*4a5d661aSToomas Soome .long 0 /* load_end_addr */ 37*4a5d661aSToomas Soomestart_sector: .long 0 /* partition LBA */ 38*4a5d661aSToomas Soome .long 0 39*4a5d661aSToomas Soome 40