--- trunk/mkinitrd-magellan/isolinux/kernel.inc 2010/08/19 08:27:19 1132 +++ trunk/mkinitrd-magellan/isolinux/kernel.inc 2010/08/19 09:50:43 1133 @@ -1,7 +1,6 @@ -;; $Id: kernel.inc,v 1.1 2007-09-01 22:44:05 niro Exp $ ;; ----------------------------------------------------------------------- -;; -;; Copyright 1994-2002 H. Peter Anvin - All Rights Reserved +;; +;; Copyright 1994-2008 H. Peter Anvin - All Rights Reserved ;; ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -13,7 +12,7 @@ ;; ;; kernel.inc -;; +;; ;; Header file for the kernel interface definitions ;; @@ -57,19 +56,27 @@ su_pad1 resw 1 ; 0226 su_cmd_line_ptr resd 1 ; 0228 su_ramdisk_max resd 1 ; 022C - resb (9000h-12)-($-$$) ; Were bootsect.S puts it... -linux_stack equ $ ; 8FF4 -linux_fdctab equ $ - resb 9000h-($-$$) -cmd_line_here equ $ ; 9000 Should be out of the way + resb (0f800h-12)-($-$$) +linux_stack equ $ ; F7F4 +linux_fdctab resb 12 +cmd_line_here equ $ ; F800 Should be out of the way endstruc ; -; Kernel command line signature +; Old kernel command line signature ; CMD_MAGIC equ 0A33Fh ; Command line magic ; +; If we're loading the command line old-style, we need a smaller +; heap. +; +old_cmd_line_here equ 9800h +old_max_cmd_len equ 2047 +old_linux_fdctab equ old_cmd_line_here-12 +old_linux_stack equ old_linux_fdctab + +; ; Magic number of su_header field ; HEADER_ID equ 'HdrS' ; HdrS (in littleendian hex) @@ -78,6 +85,8 @@ ; Flags for the su_loadflags field ; LOAD_HIGH equ 01h ; Large kernel, load high +QUIET_FLAG equ 20h ; Quiet the kernel +KEEP_SEGMENTS equ 40h ; Don't reload segments CAN_USE_HEAP equ 80h ; Boot loader reports heap size ; @@ -88,4 +97,19 @@ isolinux_id equ 033h ; 3 = SYSLINUX family; 3 = ISOLINUX extlinux_id equ 034h ; 3 = SYSLINUX family; 4 = EXTLINUX +; +; Types of vkernels +; +VK_LOCALBOOT equ -1 ; localboot (no actual kernel loaded) +VK_KERNEL equ 0 ; Choose by filename +VK_LINUX equ 1 ; Linux kernel image +VK_BOOT equ 2 ; Boot sector +VK_BSS equ 3 ; BSS boot sector +VK_PXE equ 4 ; PXE NBP +VK_FDIMAGE equ 5 ; Floppy disk image +VK_COMBOOT equ 6 ; COMBOOT image +VK_COM32 equ 7 ; COM32 image +VK_CONFIG equ 8 ; Configuration file +VK_TYPES equ 9 ; Number of VK types + %endif ; _KERNEL_INC