?? 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*//** 根文件系統(tǒng)設(shè)備已不再是硬編碼的了。通過修改boot/bootsect.s 文件中行* ROOT_DEV = XXX,你可以改變根設(shè)備的默認(rèn)設(shè)置值。*//** 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 能夠在啟動時(shí)從BIOS 中獲取驅(qū)動器德參數(shù),但是若由于未知原因* 而沒有得到這些參數(shù)時(shí),會使程序束手無策。對于這種情況,你可以定義HD_TYPE,* 其中包括硬盤的所有信息。** HD_TYPE 宏應(yīng)該象下面這樣的形式:** #define HD_TYPE { head, sect, cyl, wpcom, lzone, ctl}** 對于有兩個(gè)硬盤的情況,參數(shù)信息需用逗號分開:** #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.*//** 下面是一個(gè)例子,兩個(gè)硬盤,第1 個(gè)是類型2,第2 個(gè)是類型3:*11.23 fdreg.h 頭文件* #define HD_TYPE { 4,17,615,300,615,8 }, {6,17,615,300,615,0 }** 注意:對應(yīng)所有硬盤,若其磁頭數(shù)<=8,則ctl 等于0,若磁頭數(shù)多于8 個(gè),* 則ctl=8。** 如果你想讓BIOS 給出硬盤的類型,那么只需不定義HD_TYPE。這是默認(rèn)操作。*/#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -