Linux ÄÚºËÆô¶¯·ÖÎö£¨×ª£©
Linux ÄÚºËÆô¶¯·ÖÎö£¨×ª£©
Linux ÄÚºËÆô¶¯·ÖÎö
1. ÄÚºËÆô¶¯µØÖ·
1.1. Ãû´Ê½âÊÍ
ZTEXTADDR
½âѹ´úÂëÔËÐеĿªÊ¼µØÖ·¡£Ã»ÓÐÎïÀíµØÖ·ºÍÐéÄâµØÖ·Ö®·Ö£¬ÒòΪ´ËʱMMU´¦ÓڹرÕ״̬¡£Õâ¸öµØÖ·²»Ò»¶¨Ê±RAMµÄµØÖ·£¬¿ÉÒÔÊÇÖ§³Ö¶ÁдѰַµÄflashµÈ´æ´¢Öн顣
Start address of decompressor. here's no point in talking about
virtual or physical addresses here, since the MMU will be off at the
time when you call the decompressor code. You normally call the
kernel at this address to start it booting. This doesn't have to be
located in RAM, it can be in flash or other read-only or
read-write addressable medium.
ZRELADDR
ÄÚºËÆô¶¯ÔÚRAMÖеĵØÖ·¡£Ñ¹ËõµÄÄÚºËÓ³Ïñ±»½âѹµ½Õâ¸öµØÖ·£¬È»ºóÖ´ÐС£
This is the address where the decompressed kernel will be written,
and eventually executed. The following constraint must be valid:
__virt_to_phys(TEXTADDR) == ZRELADDR
The initial part of the kernel is carefully coded to be position independent.
TEXTADDR
ÄÚºËÆô¶¯µÄÐéÄâµØÖ·£¬ÓëZRELADDRÏà¶ÔÓ¦¡£Ò»°ãÄÚºËÆô¶¯µÄÐéÄâµØַΪRAMµÄµÚÒ»¸öbankµØÖ·¼ÓÉÏ0x8000¡£
TEXTADDR = PAGE_OFFSET + TEXTOFFST
Virtual start address of kernel, normally PAGE_OFFSET +
0x8000.This is where the kernel image ends up. With the latest
kernels, it must be located at 32768 bytes into a 128MB region.
Previous kernels placed a restriction of 256MB here.
TEXTOFFSET
ÄÚºËÆ«ÒƵØÖ·¡£ÔÚarch/arm/makefileÖÐÉ趨¡£
PHYS_OFFSET
RAMµÚÒ»¸öbankµÄÎïÀíÆðʼµØÖ·¡£
Physical start address of the first bank of RAM.
PAGE_OFFSET
RAMµÚÒ»¸öbankµÄÐéÄâÆðʼµØÖ·¡£
Virtual start address of t
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
LinuxÏÂcoreÎļþµ÷ÊÔ·½·¨
ÔÚ³ÌÐò²»Ñ°³£Í˳öʱ£¬Äں˻áÔÚµ±Ç°¹¤×÷Ŀ¼ÏÂÉú³ÉÒ»¸öcoreÎļþ£¨ÊÇÒ»¸öÄÚ´æÓ³Ïñ£¬Í¬Ê±¼ÓÉϵ÷ÊÔÐÅÏ¢£©¡£Ê¹ÓÃgdbÀ´²é¿´coreÎļþ£¬¿ÉÒÔָʾ³öµ¼Ö³ÌÐò³ö´íµÄ´úÂëËùÔÚÎļþºÍÐÐÊý¡£
1.coreÎļþµÄÉú³É¿ª¹ØºÍ´óСÏÞÖÆ
1£©Ê¹ÓÃul ......
¡¡Èç¹ûÄã°®ºÃѧϰ֪ʶ£¬ÓÈÆäÊÇLinux²Ù×÷ϵͳ֪ʶ£¬Ëæ×ÅLinuxÓ¦ÓõÄÀ©Õ¹£¬Ðí¶àÅóÓÑ¿ªÊ¼½Ó´¥Linux£¬¿ÉÄã²»ÖªµÀÈ¥ÄÄÀïÕÒµ½ÕâЩ֪ʶ£¬À´ÕâÀÈÃÄã¸ü¼ÓÁ˽âLinuxѧϰ·½·¨¡£ÈÃÄãÈ«ÃæÕÆÎÕLinuxѧϰ·½·¨¡£
1£®Ñ§Ï°µÄÄ¿µÄ
¡¡¡¡Í¨¹ýLinuxµÄѧϰÕÆÎÕUNIXµÄÄ¿µÄÏë±Ø²»Óöà˵ÁË£¬ÔÚÕâ¸öÍøÂçÈ˲ÅÉí¼Û±¶ÔöµÄÄê´ú£¬Ï ......
±¾Îļòµ¥½éÉÜÁ˵±Ç°WindowsÖ§³ÖµÄ¸÷ÖÖSocket I/OÄ£ÐÍ£¬Èç¹ûÄã·¢ÏÖÆäÖдæÔÚʲô´íÎóÇëÎñ±Ø´Í½Ì¡£
Ò»£ºselectÄ£ÐÍ
¶þ£ºWSAAsyncSelectÄ£ÐÍ
Èý£ºWSAEventSelectÄ£ÐÍ
ËÄ£ºOverlapped I/O ʼþ֪ͨģÐÍ
Î壺Overlapped I/O Íê³ÉÀý³ÌÄ£ÐÍ
Áù£ºIOCPÄ£ÐÍ
ÀϳÂÓÐÒ»¸öÔÚÍâµØ¹¤×÷µÄÅ®¶ù£¬²»Äܾ³£»ØÀ´£¬ÀϳºÍËýͨ¹ýÐżþ ......