Magellan Linux

Annotation of /trunk/mkinitrd-magellan/isolinux/kernel.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1133 - (hide annotations) (download)
Thu Aug 19 09:50:43 2010 UTC (13 years, 8 months ago) by niro
File size: 3600 byte(s)
-updated to isolinux-3.86
1 niro 532 ;; -----------------------------------------------------------------------
2     ;;
3 niro 1133 ;; Copyright 1994-2008 H. Peter Anvin - All Rights Reserved
4     ;;
5 niro 532 ;; This program is free software; you can redistribute it and/or modify
6     ;; it under the terms of the GNU General Public License as published by
7     ;; the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8     ;; Boston MA 02111-1307, USA; either version 2 of the License, or
9     ;; (at your option) any later version; incorporated herein by reference.
10     ;;
11     ;; -----------------------------------------------------------------------
12    
13     ;;
14     ;; kernel.inc
15 niro 1133 ;;
16 niro 532 ;; Header file for the kernel interface definitions
17     ;;
18    
19     %ifndef _KERNEL_INC
20     %define _KERNEL_INC
21    
22     ;;
23     ;; Structure of the real_mode_seg
24     ;;
25    
26     struc real_mode_seg_t
27     resb 20h-($-$$) ; org 20h
28     kern_cmd_magic resw 1 ; 0020 Magic # for command line
29     kern_cmd_offset resw 1 ; 0022 Offset for kernel command line
30     resb 497-($-$$) ; org 497d
31     bs_setupsecs resb 1 ; 01F1 Sectors for setup code (0 -> 4)
32     bs_rootflags resw 1 ; 01F2 Root readonly flag
33     bs_syssize resw 1 ; 01F4
34     bs_swapdev resw 1 ; 01F6 Swap device (obsolete)
35     bs_ramsize resw 1 ; 01F8 Ramdisk flags, formerly ramdisk size
36     bs_vidmode resw 1 ; 01FA Video mode
37     bs_rootdev resw 1 ; 01FC Root device
38     bs_bootsign resw 1 ; 01FE Boot sector signature (0AA55h)
39     su_jump resb 1 ; 0200 0EBh
40     su_jump2 resb 1 ; 0201 Size of following header
41     su_header resd 1 ; 0202 New setup code: header
42     su_version resw 1 ; 0206 See linux/arch/i386/boot/setup.S
43     su_switch resw 1 ; 0208
44     su_setupseg resw 1 ; 020A
45     su_startsys resw 1 ; 020C
46     su_kver resw 1 ; 020E Kernel version pointer
47     su_loader resb 1 ; 0210 Loader ID
48     su_loadflags resb 1 ; 0211 Load high flag
49     su_movesize resw 1 ; 0212
50     su_code32start resd 1 ; 0214 Start of code loaded high
51     su_ramdiskat resd 1 ; 0218 Start of initial ramdisk
52     su_ramdisklen resd 1 ; 021C Length of initial ramdisk
53     su_bsklugeoffs resw 1 ; 0220
54     su_bsklugeseg resw 1 ; 0222
55     su_heapend resw 1 ; 0224
56     su_pad1 resw 1 ; 0226
57     su_cmd_line_ptr resd 1 ; 0228
58     su_ramdisk_max resd 1 ; 022C
59 niro 1133 resb (0f800h-12)-($-$$)
60     linux_stack equ $ ; F7F4
61     linux_fdctab resb 12
62     cmd_line_here equ $ ; F800 Should be out of the way
63 niro 532 endstruc
64    
65     ;
66 niro 1133 ; Old kernel command line signature
67 niro 532 ;
68     CMD_MAGIC equ 0A33Fh ; Command line magic
69    
70     ;
71 niro 1133 ; If we're loading the command line old-style, we need a smaller
72     ; heap.
73     ;
74     old_cmd_line_here equ 9800h
75     old_max_cmd_len equ 2047
76     old_linux_fdctab equ old_cmd_line_here-12
77     old_linux_stack equ old_linux_fdctab
78    
79     ;
80 niro 532 ; Magic number of su_header field
81     ;
82     HEADER_ID equ 'HdrS' ; HdrS (in littleendian hex)
83    
84     ;
85     ; Flags for the su_loadflags field
86     ;
87     LOAD_HIGH equ 01h ; Large kernel, load high
88 niro 1133 QUIET_FLAG equ 20h ; Quiet the kernel
89     KEEP_SEGMENTS equ 40h ; Don't reload segments
90 niro 532 CAN_USE_HEAP equ 80h ; Boot loader reports heap size
91    
92     ;
93     ; ID codes for various modules
94     ;
95     syslinux_id equ 031h ; 3 = SYSLINUX family; 1 = SYSLINUX
96     pxelinux_id equ 032h ; 3 = SYSLINUX family; 2 = PXELINUX
97     isolinux_id equ 033h ; 3 = SYSLINUX family; 3 = ISOLINUX
98     extlinux_id equ 034h ; 3 = SYSLINUX family; 4 = EXTLINUX
99    
100 niro 1133 ;
101     ; Types of vkernels
102     ;
103     VK_LOCALBOOT equ -1 ; localboot (no actual kernel loaded)
104     VK_KERNEL equ 0 ; Choose by filename
105     VK_LINUX equ 1 ; Linux kernel image
106     VK_BOOT equ 2 ; Boot sector
107     VK_BSS equ 3 ; BSS boot sector
108     VK_PXE equ 4 ; PXE NBP
109     VK_FDIMAGE equ 5 ; Floppy disk image
110     VK_COMBOOT equ 6 ; COMBOOT image
111     VK_COM32 equ 7 ; COM32 image
112     VK_CONFIG equ 8 ; Configuration file
113     VK_TYPES equ 9 ; Number of VK types
114    
115 niro 532 %endif ; _KERNEL_INC