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

linux 2.6Ô´´úÂëÇé¾°·ÖÎö±Ê¼ÇÖ®ÄÚ´æ2

linuxÖеĶλúÖÆ£º
ÔÚlinuxÖУ¬Âß¼­µØÖ·µ½ÎïÀíµØÖ·£¬ÊǾ­¹ý·Ö¶Îµ¥Ôª£­>·ÖÒ³µ¥ÔªÕâÁ½¸ö²¿·ÖµÄת»»À´Íê³ÉµÄ¡£ÆäÖÐÂß¼­µØÖ·Óɶαêʶ·ûºÍÖ¸¶¨¶ÎÄÚÏà¶ÔµØÖ·µÄÆ«ÒÆÁ¿¡£Ç°Õß16볤µÄ×ֶΣ¨¶ÎÑ¡Ôñ·ûsegment selector£©,ºóÕßÊÇ32볤µÄ×ֶΡ£
¶ÎÑ¡Ôñ·ûµÄ¹¹³É:
15-3(index)Ö¸¶¨ÁË·ÅÔÚGDT»òÕßLDTÖеÄÏàÓ¦¶ÎÃèÊö·ûµÄÈë¿Ú
2£¨TL£­table indicator£©±êÖ¾£ºÖ¸Ã÷¶ÎÃèÊö·ûÊÇÔÚGDTÖУ¨TI=0£©»òÕßÔÚLDTÖУ¨TI=1£©
1-0(RPL)ÇëÇóÕßÌØȨ¼¶£ºµ±ÏàÓ¦µÄ¶ÎÑ¡Ôñ·ûºÅ×°Èëcs¼Ä´æÆ÷ÖÐʱ£¬Ö¸Ê¾³öcpuµ±Ç°µÄÌØȨ¼¶£»»¹¿ÉÒÔÓÃÓÚÔÚ·ÃÎÊÊý¾Ý¶ÎʱÓÐÑ¡ÔñµØÏ÷Èõ´¦ÀíÆ÷µÄÌØȨ¼¶£¨intelÎĵµ£©
´¦ÀíÆ÷ÖÐÓм¸¸ö¶Î¼Ä´æÆ÷ÓÃÀ´´æ·Å¶ÎÑ¡Ôñ·û£¬cs,ss,ds,es,fs,gs.ÆäÖÐcs,ss,dsÓÐרÃŵÄÓÃ;¡£
cs:´úÂë¶Î¼Ä´æÆ÷£¬Ö¸Ïò°üº¬³ÌÐòÖ¸ÁîµÄ¶Î¡££¨ÆäÖл¹º¬ÓÐÒ»¸öÁ½Î»µÄ×ֶΣ¬ÓÃÒÔÖ¸Ã÷cpuµÄµ±Ç°ÌØȨ¼¶±ð£¨current privilege level,CPL£©¡£µ±Îª0µÄʱºò£¬´ú±í×î¸ß¼¶ÓÅÏȼ¶±ð£¬Îª3ʱ´ú±í×îµÍÓÅÏȼ¶±ð¡£ÔÚlinuxÖÐÇ°ÕßÊÇÄں˼¶±ð£¬ºóÕßÓû§¼¶±ð£©
ds:Êý¾Ý¶Î¼Ä´æÆ÷£¬Ö¸Ïò°üº¬¾²Ì¬Êý¾Ý»òÕßÈ«¾ÖÊý¾Ý¶Î¡£
ss:Õ»¶Î¼Ä´æÆ÷£¬Ö¸Ïò°üº¬µ±Ç°³ÌÐòÕ»µÄ¶Î¡£
¶ø¶ÎµÄ±íʾÊÇÓÉ8×ֽڵĶÎÃèÊö·û£¨segment descriptor£©À´Íê³ÉµÄ,´ËÊý¾ÝÃèÊöÁ˶εÄÌØÕ÷¡£¶ÎÃèÊö·û·ÅÔÚÈ«¾ÖÃèÊö·û±í£¨global descriptor table,GDT£©»ò¾Ö²¿ÃèÊö·û±í£¨local descriptor table,LDT£©ÖС£
GDTÔÚÖ÷´æµØÖ·ºÍ´óС´æ·ÅÔÚgdtr¼Ä´æÆ÷£¬µ±Ç°Õý±»Ê¹ÓõÄLDTµØÖ·ºÍ´óС·ÅÔÚldtr¿ØÖƼĴæÆ÷ÖС£
ÆäÖм¸¸ö×ֶΣº
31£­24 23£­16 15£­0£¨base 63£­56 39£­32 31£­16£©:°üº¬¶ÎµÄÊ××Ö½ÚµÄÏßÐÔµØÖ·¡£
G£¨55£©:Ϊ0ʱ¶ÎÊÇÒÔ×Ö½ÚΪµ¥Î»£¬Îª1ʱÒÔ4096µÄ±¶Êý¼Æ¡£
D/B(54):ΪD»òÕßΪBÈ¡¾öÓÚÊÇ´úÂë¶Î»¹ÊÇÊý¾Ý¶Î¡£D»òBµÄº¬ÒåÔÚÁ½ÖÖÇé¿öÏÂÓÐÇø±ð¡£µ±¶ÎÆ«ÒÆÁ¿µÄµØַΪ32룬¾ÍÉèΪ1£¬Èç¹ûÆ«ÒÆÁ¿16볤£¬±»Çå0£¨intelÊֲᣩ¡£
0£¨53£©
AVL£¨52£©£º±»linuxºöÂÔ
19-16 15-0(limit 51£­48 15£­0):´æ·Å¶ÎÖÐ×îºóÒ»¸öÄÚ´æµ¥ÔªµÄÆ«ÒÆÁ¿£¬´Ó¶ø¾ö¶¨¶Î³¤¶È¡£Èç¹û¶Î´óСÊÇ°´ÕÕ×Ö½Úµ¥Î»ÔòÒ»¸ö¶ÎµÄ´óСÔÚ1¸ö×Ö½Úµ½1mbÖ®¼ä±ä»¯£»Èç¹ûÒÔ4096×ֽڵı¶Êý¼ÆË㣬ÔòÔÚ4kb-4GBÖ®¼ä±ä»¯¡£
p£¨47£©:segment-present±êÖ¾£ºµÈÓÚ0±íʾ¶Îµ±Ç°²»ÔÚÖ÷´æÖС£linux×ܽ«´ËÉèÖã¨47λ£©Îª1
DPL£¨46£­45£©:ÃèÊö·ûÌØȨ¼¶£¨descriptor privilege level£©×ֶΣ¬ÓÃÓÚÏÞÖƶÔÓÚÕâ¸ö¶ÎµÄ´æÈ¡¡£±íʾΪ·ÃÎÊÕâ¸ö¶ÎÒªÇóµÄcpu×îСµÄÓÅÏȼ¶±ð¡£Òò´Ë£¬dplÉèΪ0µÄ¶ÎÖ»Äܵ±cplΪ0ʱ£¨ÄÚºË̬£©²ÅÊÇ¿É·ÃÎʵģ¬¶ødplÉèΪ3µÄ¶Î¶ÔÈÎ


Ïà¹ØÎĵµ£º

linux 2.6.23ʱÖÓÖжÏÓëµ÷¶È·ÖÎö(4)

TIMER_INITIALIZER£¨£©£º
1):TIMER_INITIALIZER£¨£©ÓÃÀ´ÉùÃ÷Ò»¸ö¶¨Ê±Æ÷£¬ËüµÄ¶¨ÒåÈçÏ£º
#define TIMER_INITIALIZER(_function, _expires, _data) {         \
                .function = (_fun ......

LinuxÏÂÈí¼þµÄ°²×°ÓëжÔØ£¨×ª£©

ÔÚWindowsÏ°²×°Èí¼þʱ£¬Ö»ÐèÔËÐÐÈí¼þµÄ°²×°³ÌÐò£¨setup¡¢installµÈ£©»òÕßÓÃzipµÈ½âѹËõÈí¼þ½â¿ª¼´¿É°²×°£¬ÔËÐз´°²×°³ÌÐò£¨uninstall¡¢unware¡¢¡°Ð¶ÔØ¡±µÈ£©¾ÍÄܽ«Èí¼þÇå³ý¸É¾»£¬ÍêȫͼÐλ¯µÄ²Ù×÷½çÃ棬¼òµ¥µ½Ö»ÒªÓÃÊó±êÒ»Ö±µã»÷¡°ÏÂÒ»²½¡±¾Í¿ÉÒÔÁË¡£¶øLinuxºÃÏó¾Í²»Ò»ÑùÁË£¬ºÜ¶àµÄ³õѧÕ߶¼±§Ô¹ÔÚLinuxÏ°²×°ºÍжÔØÈí¼þ·Ç³ ......

[ת]̽Ë÷ Linux ÄÚºËÐéÄâ»ú

ת£ºhttp://www.ibm.com/developerworks/cn/linux/l-linux-kvm/#N1009B 2007 Äê 5 Ô 28 ÈÕ Linux® ¼ÈÓÐÁ¼ºÃµÄÁé»îÐÔ£¬ÔÚÐéÄ⻯·½ÃæͬÑù³öÉ«¡£µ«ÊÇ×î½ü£¬Ëæ×ÅÄÚºËÐéÄâ»ú£¨KVM£©µÄ³öÏÖ£¬Linux ÐéÄ⻯µÄÇ°¾°·¢ÉúÁ˱仯¡£KVM Êǹ¹³ÉÖ÷Á÷ Linux Äںˣ¨V2.6.20£©Ò»²¿·ÖµÄµÚÒ»¸öÐéÄ⻯½â¾ö·½°¸¡£KVM Ö§³Ö Linux ¿Í»§²Ù×÷ϵ ......

linux zImageÉú³É¹ý³ÌÏê½â


Äں˱àÒëÍê³Éºó»áÉú³ÉzImageÄں˾µÏñÎļþ¡£¹ØÓÚbootloader¼ÓÔØzImageµ½Äںˣ¬²¢ÇÒÌøתµ½zImage¿ªÊ¼µØÖ·ÔËÐÐzImageµÄ¹ý³Ì£¬ÏàÐÅ´ó¼Ò¶¼ºÜÈÝÒ×Àí½â¡£µ«¶ÔÓÚzImageÊÇÈçºÎ½âѹµÄ¹ý³Ì£¬¾Í²»ÊÇÄÇôºÃÀí½âÁË¡£±¾ÎĽ«½áºÏ²¿·Ö¹Ø¼ü´úÂ룬½²½âzImageµÄ½âѹ¹ý³Ì¡£
¡¡¡¡ÏÈ¿´¿´zImageµÄ×é³É°É¡£ÔÚÄں˱àÒëÍê³Éºó»áÔÚarch/arm/boot/ÏÂÉú ......

linuxÄÚºËÆô¶¯¹ý³Ì——»ùÓÚS3C2410

£¨1£©zImage×Ô½âѹ
±¾ÎÄÒÔÁ÷ÐеÄSamsung¹«Ë¾µÄS3C2410£¬mini2440ƽ̨ºÍlinux-2.6.29ΪÀý£¬½éÉÜÈçºÎÔÚZIXǶÈëʽ¿ª·¢»·¾³ÏÂ̽Ë÷linuxÄÚºËÆô¶¯¹ý³Ì¡£
LinuxÄÚºËÆô¶¯Ò»°ãÓÉÍⲿµÄbootloaderÒýµ¼£¬Ò²¿ÉÒÔÔÚÄÚºËÍ·²¿Ç¶ÈëÒ»¸öloader£¬Êµ¼ÊµÄÓ¦ÓÃÖÐÕâÁ½ÖÖ·½Ê½¶¼»á¾­³£Óöµ½¡£ËùÒÔÒªÁ˽âÄÚºËÆô¶¯×ʼµÄ¹ý³Ì£¬±ØÐë¶ÔbootloaderÈçºÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ