?? config.h
字號:
#ifndef _CONFIG_H#define _CONFIG_H/** The root-device is no longer hard-coded. You can change the default* root-device by changing the line ROOT_DEV = XXX in boot/bootsect.s*//** 根文件系統設備已不再是硬編碼的了。通過修改boot/bootsect.s 文件中行* ROOT_DEV = XXX,你可以改變根設備的默認設置值。*//** define your keyboard here -* KBD_FINNISH for Finnish keyboards* KBD_US for US-type* KBD_GR for German keyboards* KBD_FR for Frech keyboard*//** 在這里定義你的鍵盤類型 -* KBD_FINNISH 是芬蘭鍵盤。* KBD_US 是美式鍵盤。* KBD_GR 是德式鍵盤。* KBD_FR 是法式鍵盤。*//*#define KBD_US *//*#define KBD_GR *//*#define KBD_FR */#define KBD_FINNISH/** Normally, Linux can get the drive parameters from the BIOS at* startup, but if this for some unfathomable reason fails, you'd* be left stranded. For this case, you can define HD_TYPE, which* contains all necessary info on your harddisk.** The HD_TYPE macro should look like this:** #define HD_TYPE { head, sect, cyl, wpcom, lzone, ctl}** In case of two harddisks, the info should be sepatated by* commas:** #define HD_TYPE { h,s,c,wpcom,lz,ctl },{ h,s,c,wpcom,lz,ctl }*//** 通常,Linux 能夠在啟動時從BIOS 中獲取驅動器德參數,但是若由于未知原因* 而沒有得到這些參數時,會使程序束手無策。對于這種情況,你可以定義HD_TYPE,* 其中包括硬盤的所有信息。** HD_TYPE 宏應該象下面這樣的形式:** #define HD_TYPE { head, sect, cyl, wpcom, lzone, ctl}** 對于有兩個硬盤的情況,參數信息需用逗號分開:** #define HD_TYPE { h,s,c,wpcom,lz,ctl }, {h,s,c,wpcom,lz,ctl }*//*This is an example, two drives, first is type 2, second is type 3:#define HD_TYPE { 4,17,615,300,615,8 }, { 6,17,615,300,615,0 }NOTE: ctl is 0 for all drives with heads<=8, and ctl=8 for driveswith more than 8 heads.If you want the BIOS to tell what kind of drive you have, justleave HD_TYPE undefined. This is the normal thing to do.*//** 下面是一個例子,兩個硬盤,第1 個是類型2,第2 個是類型3:*11.23 fdreg.h 頭文件* #define HD_TYPE { 4,17,615,300,615,8 }, {6,17,615,300,615,0 }** 注意:對應所有硬盤,若其磁頭數<=8,則ctl 等于0,若磁頭數多于8 個,* 則ctl=8。** 如果你想讓BIOS 給出硬盤的類型,那么只需不定義HD_TYPE。這是默認操作。*/#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -