⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kernel.inc

📁 Windows上的精简Linux系统
💻 INC
字号:
;; $Id: kernel.inc,v 1.1 2002/04/26 05:56:24 hpa Exp $;; -----------------------------------------------------------------------;;   ;;   Copyright 1994-2002 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;;   the Free Software Foundation, Inc., 53 Temple Place Ste 330,;;   Bostom MA 02111-1307, USA; either version 2 of the License, or;;   (at your option) any later version; incorporated herein by reference.;;;; -----------------------------------------------------------------------;;;; kernel.inc;; ;; Header file for the kernel interface definitions;;%ifndef _KERNEL_INC%define _KERNEL_INC;;;; Structure of the real_mode_seg;;		struc real_mode_seg_t		resb 20h-($-$$)		; org 20hkern_cmd_magic	resw 1			; 0020 Magic # for command linekern_cmd_offset resw 1			; 0022 Offset for kernel command line		resb 497-($-$$)		; org 497dbs_setupsecs	resb 1			; 01F1 Sectors for setup code (0 -> 4)bs_rootflags	resw 1			; 01F2 Root readonly flagbs_syssize	resw 1			; 01F4bs_swapdev	resw 1			; 01F6 Swap device (obsolete)bs_ramsize	resw 1			; 01F8 Ramdisk flags, formerly ramdisk sizebs_vidmode	resw 1			; 01FA Video modebs_rootdev	resw 1			; 01FC Root devicebs_bootsign	resw 1			; 01FE Boot sector signature (0AA55h)su_jump		resb 1			; 0200 0EBhsu_jump2	resb 1			; 0201 Size of following headersu_header	resd 1			; 0202 New setup code: headersu_version	resw 1			; 0206 See linux/arch/i386/boot/setup.Ssu_switch	resw 1			; 0208su_setupseg	resw 1			; 020Asu_startsys	resw 1			; 020Csu_kver		resw 1			; 020E Kernel version pointersu_loader	resb 1			; 0210 Loader IDsu_loadflags	resb 1			; 0211 Load high flagsu_movesize	resw 1			; 0212su_code32start	resd 1			; 0214 Start of code loaded highsu_ramdiskat	resd 1			; 0218 Start of initial ramdisksu_ramdisklen	equ $			; Length of initial ramdisksu_ramdisklen1	resw 1			; 021Csu_ramdisklen2	resw 1			; 021Esu_bsklugeoffs	resw 1			; 0220su_bsklugeseg	resw 1			; 0222su_heapend	resw 1			; 0224su_pad1		resw 1			; 0226su_cmd_line_ptr	resd 1			; 0228su_ramdisk_max	resd 1			; 022C		resb (9000h-12)-($-$$)	; Were bootsect.S puts it...linux_stack	equ $			; 8FF4linux_fdctab	equ $		resb 9000h-($-$$)cmd_line_here	equ $			; 9000 Should be out of the way		endstruc;; Kernel command line signature;CMD_MAGIC	equ 0A33Fh		; Command line magic;; Magic number of su_header field;HEADER_ID       equ 'HdrS'		; HdrS (in littleendian hex);; Flags for the su_loadflags field;LOAD_HIGH	equ 01h			; Large kernel, load highCAN_USE_HEAP    equ 80h                 ; Boot loader reports heap size;; ID codes for various modules;syslinux_id	equ 031h		; 3 = SYSLINUX family; 1 = SYSLINUXpxelinux_id	equ 032h		; 3 = SYSLINUX family; 2 = PXELINUXisolinux_id	equ 033h		; 3 = SYSLINUX family; 3 = PXELINUX%endif ; _KERNEL_INC

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -