linux 0.11 ÄÚºËѧϰ setup.s
²Î¿¼×ÊÁÏ LinuxÄÚºËÍêȫעÊÍ.pdf
ÍøÉÏÏà¹Ø×ÊÁÏ
! setup³ÌÐòµÄÖ÷Òª×÷ÓÃÊÇÀûÓÃrom biosµÄÖжÏÀ´¶ÁÈ¡»úÆ÷ϵͳ²ÎÊý£¬²¢½«ÕâЩÊý¾Ý±£´æÔÚ0x90000
! ¿ªÊ¼µÄλÖÃ(¸²¸ÇµôÁËbootsect³ÌÐòËùÔÚµÄλÖÃ)£¬ËùÈ¡µÃµÄ²ÎÊý±»Äں˵ÄÏà¹Ø³ÌÐòʹÓá£×¢ÒâÔÚbootsect
! ÖÐÒѾ½«¸ÃÄ£¿éºÍsystem¡¢Ä£¿é¼ÓÔص½ÄÚ´æÖС£
! È»ºósetup³ÌÐò½«systemÄ£¿é´ÓµØÖ·0x10000-0x8fff(µ±Ê±ÈÏΪÄں˵Ä×î´óÖµ)Õû¿éÒƶ¯µ½ÄÚ´æµÄ¾ø¶ÔµØÖ·
! 0x00000´¦¡£½ÓÏÂÀ´¼ÓÔØÖжÏÃèÊö·û±í¼Ä´æÆ÷idtrºÍÈ«¾ÖÃèÊö·û±ígdtr£¬¿ªÆôa20µØÖ·Ïߣ¬ÖØÐÂÉèÖÃÁ½¸ö
! ÖжϿØÖÆоƬ£¬½«Ó²¼þÖն˺ÅÖØÐÂÉèÖã¬×îºóÉèÖÃcpuµÄ¿ØÖƼĴæÆ÷cr0£¬´Ó¶ø½øÈë32λµÄ±£»¤Ä£Ê½£¬²¢
! ÇÒÌøתµ½systemÄ£¿é×îÇ°ÃæµÄhead.s³ÌÐò´¦¿ªÊ¼¼ÌÐøÔËÐС£
!
! ΪÁËÄÜÈÃhead.sÔÚ32λµÄ±£»¤Ä£Ê½ÏÂÔËÐУ¬±¾³ÌÐòÉèÖÃÁËÖжÏÃèÊö·û±íidtºÍÈ«¾ÖÃèÊö·û±ígdt£¬²¢ÔÚgdt
! ÖÐÉèÖÃÁ˵±Ç°Äں˴úÂë¶ÎµÄÃèÊö·ûºÍÊý¾Ý¶ÎµÄÃèÊö·û¡£ÔÚÏÂÃæµÄhead.s³ÌÐòÖлá¸ù¾ÝÄں˵ÄÐèÒªÖØÐÂÉèÖÃ
! ÕâЩÃèÊö·û±í¡£
!
!
! setup.s (C) 1991 Linus Torvalds
!
! setup.s is responsible for getting the system data from the BIOS,
! and putting them into the appropriate places in system memory.
! both setup.s and system has been loaded by the bootblock.
!
! This code asks the bios for memory/disk/other parameters, and
! puts them in a "safe" place: 0x90000-0x901FF, ie where the
! boot-block used to be. It is then up to the protected mode
! system to read them from there before the area is overwritten
! for buffer-blocks.
!
! NOTE! These had better be the same as in bootsect.s!
INITSEG = 0x9000 ! we move boot here - out of the way£¬ÔÀ´µÄbootsect¶Î
SYSSEG = 0x1000 ! system loaded at 0x10000 (65536).systemËùÔÚ¶Î
SETUPSEG = 0x9020 ! this is the current segment£¬±¾³ÌÐòËùÔÚ¶Î
.globl begtext, begdata, begbss, endtext, enddata, endbss
.text
begtext:
.data
begdata:
.bss
begbss:
.text
entry start
start:
! ok, the read went well so we get current cursor position and save it for
! posterity.
! Õû¸ö¶Á´ÅÅ̵Ĺý³Ì¶¼ºÜ˳Àû£¬ÏÖÔÚ½«¹â±êλÖñ£´æÒÔ±¸ºó
Ïà¹ØÎĵµ£º
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
¸ÃÎļþÖеÄËùÓÐÖµ¶¼ÊÇ´ÓϵͳÆô¶¯¿ªÊ¼ÀۼƵ½µ±Ç°Ê±¿Ì¡£¸ÃÎļþÖ»¸ø³öÁËËùÓÐCPUµÄ¼¯ºÏÐÅÏ¢£¬²»Äܸóöÿ¸öCPUµÄÐÅÏ¢¡£
[root@localhost ~]# cat /proc/loadavg
4.61 4.36 4.15 9/84 5662
ÿ¸öÖµµÄº¬ÒåΪ£º
²ÎÊý ½âÊÍ
lavg_1 (4.61) 1-·ÖÖÓƽ¾ù¸ºÔØ
lavg_5 (4.36) 5-·ÖÖÓƽ¾ù¸ºÔØ
lavg_15(4.15) 15-·ÖÖÓƽ¾ù¸ºÔØ
nr_run ......
Linux±£´æÁËϵͳÖÐËù·¢ÉúʼþµÄÏêϸ¼Ç¼£¬ÕâЩ¼Ç¼³Æ×÷ÈÕÖ¾Îļþ»òÏûÏ¢Îļþ¡£¿ÉÒÔ²éÔÄÈÕÖ¾ÎļþÀ´È·¶¨ÏµÍ³µ±Ç°×´Ì¬£¬¹Û²ìÈëÇÖÕß×Ù¼££¬Ñ°ÕÒijÌض¨³ÌÐò(»òʼþ)Ïà¹ØµÄÊý¾Ý¡£syslogdÓëklogd(¼à¿ØlinuxÄÚºËÌá½»µÄÏûÏ¢)ÊØ»¤½ø³Ì¸ºÔð¼Ç¼£¬·¢ËÍϵͳ»ò¹¤¾ß²úÉúµÄÐÅÏ¢£¬¶þÕßµÄÅäÖÃÎļþ¶¼ÊÇ/etc/syslog.conf¡£µ±ÏµÍ ......
½üÆÚ±»¸ÏѼ×ÓÉϼÜÕûlinuxÉϵÄÇý¶¯£¬ÕÛÌÚÁ˺ÃЩÌ죬³Ã×Å»¹ÓÐÓ¡Ïó½«×Ô¼ºËÑÂ޵ij¢ÊÔµÄѧµ½µÄ¼Ç¼һÏ£¬ÒÔ±¸½ñºó²éÔÄ
Ò»¡¢Ò»Ð©»ù´¡
1.Çý¶¯ÎļþÐÎʽ ££> *.ko
2.°²×°ÃüÁî ££> insmod жÔØÃüÁ> rmmod ¶¼ÐèÒªrootȨÏÞ £¬Ò²¿ÉÓÃmodprobe
3.ÆäËû¿ÉÄÜÓõ½µÄÃüÁ
......
2007-9-24
ÎÒѧLinuxµÄ¼¸¸öÌå»á
´Ó 4G spaces ×÷ÕߣºEric
ÕâÊÇÎÒΪ Youbentou ¼Æ»®¹±Ï׵ĵÚһƪÎĵµ, ËãÊǺóÐøÎÄÕµĿªÆª´Ê. ±¾ÎÄ°´ÕÕGPLÐÒé·¢²¼.
Linux ÊÇÒ»¸ö¸ßЧµÄ¹¤×÷»·¾³, ¶ÔÓÚÏëҪѧϰLinuxµÄÈË, ÕâÒ»µãÎÞÐèÎÒ¶à½âÊÍ. Òò´Ë, ±¾ÎIJ»ÊÇÈ°´ó¼Ò¶¼Í¶ÉíLinux (ËäÈ»ÎÒÒ»Ö±ÔÚÕâô×ö), ¶øÊǸøÓÐÖ¾ÓÚѧºÃ Linux µÄÈ˼¸ ......