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

📄 boot.h

📁 一个简单的操作系统minix的核心代码
💻 H
字号:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
				include/minix/boot.h	 	 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

03700	/* boot.h */
03701	
03702	#ifndef _BOOT_H
03703	#define _BOOT_H
03704	
03705	/* Redefine root and root image devices as variables.
03706	 * This keeps the diffs small but may cause future confusion.
03707	 */
03708	#define ROOT_DEV   (boot_parameters.bp_rootdev)
03709	#define IMAGE_DEV  (boot_parameters.bp_ramimagedev)
03710	
03711	/* Device numbers of RAM, floppy and hard disk devices.
03712	 * h/com.h defines RAM_DEV but only as the minor number.
03713	 */
03714	#define DEV_FD0   0x200
03715	#define DEV_HD0   0x300
03716	#define DEV_RAM   0x100
03717	#define DEV_SCSI  0x700 /* Atari TT only */
03718	
03719	/* Structure to hold boot parameters. */
03720	struct bparam_s
03721	{
03722	  dev_t bp_rootdev;
03723	  dev_t bp_ramimagedev;
03724	  unsigned short bp_ramsize;
03725	  unsigned short bp_processor;
03726	};
03727	
03728	extern struct bparam_s boot_parameters;
03729	#endif /* _BOOT_H */

⌨️ 快捷键说明

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