Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linuxÆô¶¯¹ý³ÌdzÎö(3)


ÕâÊDZ¾ÎĵõÚÈý²¿·Ö,ÔÚÇ°Á½²¿·ÖÖÐ,ÎÒÒѾ­½²ÊöÁËLinux²Ù×÷ϵͳÊÇÈçºÎ±»»úÆ÷bootµ½,²¢ÇÒloadµ½Öƶ¨µÄÄÚ´æµØÖ·µÄ.ÎÒÃǽ«¼ÌÐøµÚ¶þ²¿·ÖµÄÄÚ
ÈÝ,¿´¿´²Ù×÷ϵͳÔÚÍê³ÉÁËbootsect.sºÍsetup.sµÄÔËÐкó,ÔÚhead.sÖÐ×öÁËЩʲô.
ÈÃÎÒÃÇ»ØÒäÒ»ÏÂ,ÔÚsetup.sÖÐ,ÎÒÃÇ°ÑÕû¸ösystemÄ£¿é´ÓµØÖ·0x10000³öÍùÏÂÒƶ¯ÁË0x10000µÄ¾àÀë,Ò²¾ÍÊÇ˵,ÏÖÔÚsystemÄ£¿éÒѾ­Î»ÓÚ0x0000µØ
Ö·ÉÏÁË.¶øÇÒ,ÓÉÓÚhead.s»á±»±àÒëµ½systemÄ£¿éµÄ×îÇ°´¦,ËùÒÔÔÚhead.s¿ªÊ¼ÔËÐÐÊÇ,³ÌÐò¼ÆÊýÆ÷Ö¸ÏòµÄλÖÃÆäʵÊÇ0x0000´¦.
´ÓÕâ¶Î³ÌÐò¿ªÊ¼,LinuxÓ¦¸ÃËãÒѾ­±»ÕýʽloadÍê³ÉÁË,²¢ÇÒҲ˳Àû½øÈëÁ˱£»¤Ä£Ê½.½ÓÏÂÀ´µÄ¹¤×÷,¾ÍÏëËùÓоßÓÐÒ»¶¨¹æÄ£µÄϵͳһÑù,ÐèÒª¿ªÊ¼
³õʼ»¯ÁË.ÎÒ¸ù¾Ý±à³ÌÓï»áÓжÔϵͳµÄ½øÒ»²½³õʼ»¯ÑÔµÄÇø±ð,½«LinuxµÄ³õʼ»¯¹ý³Ì·ÖΪÁ½²¿·Ö.µÚÒ»²¿·ÖΪhead.sÖеijõʼ»¯¹¤×÷,¿ÉÒÔ³Æ֮Ϊ
asm³õʼ»¯.¶ø½ÓÏÂÀ´ÏµÍ³½«»á½øÈëµÄmain()º¯ÊýÖÐ,,¿ÉÒÔ³Æ֮Ϊc³õʼ»¯.ÈÃÎÒÃÇÏÈÀ´¿´Ò»¿´asm³õʼ»¯µÄ¹ý³Ì:
.text
.globl idt,gdt,pg_dir,tmp_floppy_area
pg_dir:
.globl startup_32
startup_32:
 movl $0x10,%eax
 mov %ax,%ds
 mov %ax,%es
 mov %ax,%fs
 mov %ax,%gs
Ê×ÏȳöÏÖµÄÕâÒ»¶Î×÷ÓÃÊÇ°Ñds,es,fs,gs¶Î¼Ä´æÆ÷µÄÄÚÈÝÈ«²¿Ö¸ÏòÔÚsetup.sÖÐÉèÖõÄGDTµÄÊý¾Ý¶Î.ÊÇ·ñ»¹¼ÇµÃ,ÔÚGDTÖÐÎÒÃǶ¨ÒåÁËÈý¸ö¶ÎÃèÊö
·û,µÚÒ»¸öΪȫÁã,ÆäʵÊÇÆúÖ®²»ÓõÄ,µÚ¶þ¸öÓëµÚÈý¸ö¶¼Ö¸ÏòÁ˵ØÖ·0x0000´¦,·Ö±ðΪ´úÂë¶ÎºÍÊý¾Ý¶Î. ÐèҪעÒâµÄÊÇ,ÎÒÃÇÒѾ­½øÈëÁ˱£»¤Ä£Ê½
,Ò²¾ÍÊÇ˵ÏÖÔڶμĴæÆ÷Öдæ·ÅµÄÒѾ­²»Ó¦¸ÃÊǶεÄÆðʼµØÖ·ÁË,¶øÊÇÓ¦¸ÃΪ¶ÎÑ¡Ôñ·û. ÔÚmovl $0x10,%eaxÖÐ,Ö±½ÓÊý0x10Õ¹¿ª³É¶þ½øÖƼÈ
ÊÇ:0000000000010000. ¶ÔÓÚintel 80x86ϵÁеÄCPUÀ´Ëµ,Ñ¡Ôñ·ûµÄ0λºÍ1λ±íʾÌØȨ¼¶±ð, 2λÊÇTI(table indicator),ËüΪ0ʱ±íʾʹÓÃGDT,
Ϊ1ʱ±íʾʹÓÃLDT.¶ø´Ó3λµ½15λ²ÅÊÇÐèҪѡÔñµÄÃèÊö·ûµÄindex.Èçͼ:
               +--------------------------------------------+
               +          INDEX             | TI  |   RPL   |
          


Ïà¹ØÎĵµ£º

LINUX RTAIÖÐ.runinfoÎļþÏê½â£¨Ó¢ÎÄ£©


Description of the "runinfo" format
-----------------------------------
Purpose of the "runinfo" files
------------------------------
"runinfo" files found in the source tree allow the "rtai-load" script
(see rtai-core/scripts/rtai-load) to retrieve the information it needs
to execute a RTAI ......

LinuxÎļþϵͳ֮Îļþ¡¢·ÖÇø´óСÏÞÖÆ


LinuxÎļþϵͳ֮Îļþ¡¢·ÖÇø´óСÏÞÖÆ
ÒÔÏÂΪºìñext3ÎļþϵͳËùÖ§³ÖµÄmax file sizeºÍmax filesystem size£º
¶ÔÎļþϵͳ
µÄÏÞÖÆÈçÏ£º
ext3 Îļþϵͳ£¬ºìñÆóÒµ°æ Linux 3 µÄÎļþϵͳ×î´óÊÇ 2TB£¨ÒÑÑéÖ¤£©£¬ºìñÆóÒµ°æ Linux 4 ºÍ 5 Ìá¸ßµ½ÁË
8TB£¨ÒÑÑéÖ¤£©£¬ºìñÆóÒµ°æ Linux 5 Ö§³ÖÎļþϵͳµÄÀíÂÛÖµÊÇ 16TB¡£
GFS ......

LinuxÌØÊâÎļþ£¨2£©——Á´½ÓÎļþ

µÚ¶þÕ Á´½ÓÎļþ
¡¡¡¡Á´½ÓÎļþÓеãÀàËÆÓÚWindows µÄËùν¿ì½Ý·½Ê½£¬µ«²¢²»ÍêÈ«Ò»Ñù¡£Á´½ÓÓÐÁ½ÖÖ·½Ê½£¬ÈíÁ´½ÓºÍÓ²Á´½Ó¡£
¡¡¡¡ÈíÁ´½ÓÎļþ
¡¡¡¡ÈíÁ´½ÓÓֽзûºÅÁ´½Ó£¬Õâ¸öÎļþ°üº¬ÁËÁíÒ»¸öÎļþµÄ·¾¶Ãû¡£¿ÉÒÔÊÇÈÎÒâÎļþ»òĿ¼£¬¿ÉÒÔÁ´½Ó²»Í¬ÎļþϵͳµÄÎļþ¡£Á´½ÓÎļþÉõÖÁ¿ÉÒÔÁ´½Ó²»´æÔÚµÄÎļþ£¬Õâ¾Í²úÉúÒ»°ã³Æ֮Ϊ"¶ÏÁ´"µÄÎÊÌ ......

linuxÆô¶¯¹ý³ÌdzÎö(1)


ûÓÐÔĶÁ¹ýÔ´Âë֮ǰ,¶Ô²Ù×÷ϵͳ×ÜÊDZ§ÓÐÉñÃظÐ,×ÜÊÇÈÏΪ²Ù×÷ϵͳÊǺܰÂÃîµÄ¶«Î÷. Æäʵ,¶ÔÓÚÒ»¸öÓÐÒ»¶¨±à³Ì»ù´¡ºÍϵͳ֪ʶµÄ³ÌÐòÔ±,²Ù×÷ϵͳ²¢²»ÊÇ¿ÉÍû¶ø²»¿É¼°µÄ¶«Î÷. ²Ù×÷ϵͳµÄ×îÖÕÄ¿±êÖ»ÊÇÔÚÓ¦ÓóÌÐò²ãÃæÓëÓ²¼þ²ãÃæÖ®¼ä×öµÄÒ»²ãЭµ÷,¿ÉÄÜÕâ¸ö¶¨ÒåÓÐЩƬÃæ,µ«±¾×ÅÕâÑùµÄ˼Ïë¶Á´úÂëÓ¦¸Ã»áÇáËÉÒ»µã.
ÓÉÓÚ·¢Õ¹µ½ÏÖÔÚ,LINU ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ