linux 0.11 ÄÚºËѧϰ asm.s£¬»úÆ÷ÄÑÃâ³ö¹ÊÕÏ¡£
/*
* linux/kernel/asm.s
*
* (C) 1991 Linus Torvalds
*/
/*
* asm.s contains the low-level code for most hardware faults.
* page_exception is handled by the mm, so that isn't here. This
* file also handles (hopefully) fpu-exceptions due to TS-bit, as
* the fpu must be properly saved/resored. This hasn't been tested.
*/
/*
* asm.asm´¦ÀíµÄÖ÷ÒªÊǺÍÓ²¼þÏà¹ØµÄ¹ÊÕÏ¡£×¢ÒâµÄÊÇÒ³Òì³£ÊÇÓÐmmÄ£¿é
* À´ÊµÏÖ¹ÜÀíµÄ£¬ËùÒÔÔÚÕâÀï²»ÐèÒª´¦Àí¡£´ËÍâ´Ë³ÌÐòÀ´´¦ÀífpuµÄÒì³£¡£
*
*/
/*
* È«¾Öº¯ÊýµÄ¶¨Ò壬Ö÷ÒªÊÇÒýÓõÄÊÇtraps.cÎļþÖеĺ¯ÊýÉùÃ÷¡£
* ÏÂÃæµÄ´úÂëÖ÷ÒªÊǶÔintelµÄ±£ÁôÖжÏint0 -- int16µÄ´¦Àí¡£
*/
.globl _divide_error,_debug,_nmi,_int3,_overflow,_bounds,_invalid_op
.globl _double_fault,_coprocessor_segment_overrun
.globl _invalid_TSS,_segment_not_present,_stack_segment
.globl _general_protection,_coprocessor_error,_irq13,_reserved
# һϵÄÖж϶¼ÊÇIntelµÃ±£ÁôÖжϵĴ¦Àí³ÌÐò¡£
#------------------------------------------------------------------------
# int0 -- ±»0³ýËùÒý·¢µÄÖжϡ£ÏÂÃæµÄ$_do_divide_errorÊÇcº¯Êý±àÒëÖ®ºó
# ¶ÔÓ¦µÄÄ£¿éµÄÃû³Æ¡£
_divide_error:
pushl $_do_divide_error # Ê×ÏȽ«º¯ÊýÈë¿ÚµØַѹÈë¶ÑÕ»¡£
no_error_code: # ±êºÅÏ൱ÓÚº¯Êý±»ÏÂÃæ³ÌÐòµ÷Óá£
xchgl %eax,(%esp) # xchglÖ¸ÁîµÄ×÷ÓÃÊǽ»»»¼Ä´æÆ÷¡£
# Ôڴ˵ĺ¬ÒåÊǽ«º¯ÊýµÄµØÖ·´æÔÚ
# eaxÖУ¬½«eaxÔÀ´ÄÚÈÝÈëÕ»¡£
pushl %ebx # ¼Ä´æÆ÷ÈëÕ»
pushl %ecx
pushl %edx
pushl %edi
pushl %esi
pushl %ebp
push %ds
push %es
push %fs
####################################################
# ½«³ö´íÂëºÍÖжϷµ»ØµØÖ·ÈëÕ»×÷Ϊº¯Êýµ÷ÓÃ_do_divide_error
# µÄ²ÎÊý¡£
pushl $0 # "error code"£¬³ö´íÂë0ÈëÕ»
lea 44(%esp),%edx # È¡µÃÖжϷµ»ØµØÖ·
pushl %edx # ÖжϷµ»ØµØÖ·ÈëÕ»
#####################################################
# ÏÂÃæµÄ´úÂëÖØÐÂÉèÖüĴæÆ÷¡£dsºÍesÖ¸ÏòµÄÊÇÄں˴úÂë¶Î
# fsÖ¸ÏòµÄÊÇÓû§Êý¾Ý¶Î¡£
movl $0x10,%edx
mov %dx,%ds
mov %dx,%es
mov %dx,%fs
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......
×î½üÔÚÓÃC++±àдһ¸öRTSPµÄ¿Í»§¶Ë£¬ÓÉÓÚÒªÓõ½Ị̈߳¬¸ù¾ÝC±à³ÌµÄ¾Ñ飬дÁËÈçÏ´úÂ룺
class LiRtspSession
{
public:
void* MainThreadFunc(void* pvData);
void* AudioProcThreadFunc(void* pvData);
& ......
1.ÔÚ´æ·Å¹²ÏíÎļþµÄ·þÎñÆ÷ÉèÖù²ÏíÎļþ¼Ð,
1) ¸ü¸Ä/etc/exports Îļþ, ½«ÐèÒª¹²ÏíµÄÎļþ¼ÐÉèÖóɹ²ÏíĿ¼,rw´ú±í¿É¶Á¿Éд,sync´ú±íͬ²½µÄÒâ˼,Ç°ÃæµÄ*±íʾËùÓÐIP¶¼¿ÉÒÔ·ÃÎÊ
/tmp/update *(rw,sync)
/opt/orabackup/prd *(root_squash,rw,sync)
&n ......
3) Á÷³Ì¿ØÖÆ
1.if
"if" ±í´ïʽ Èç¹ûÌõ¼þΪÕæÔòÖ´ÐÐthenºóÃæµÄ²¿·Ö£º
if ....; then
....
elif ....; then
....
else
....
fi
´ó¶àÊýÇé¿öÏ£¬¿ÉÒÔʹÓòâÊÔÃüÁîÀ´¶ÔÌõ¼þ½øÐвâÊÔ¡£±ÈÈç¿ÉÒԱȽÏ×Ö·û´®¡¢ÅжÏÎļþÊÇ·ñ´æÔÚ¼°ÊÇ·ñ¿É¶ÁµÈµÈ…
ͨ³£ÓÃ" [ ] "À´±íʾÌõ¼þ²âÊÔ¡£×¢ÒâÕâÀïµÄ¿Õ¸ñºÜÖØÒª¡£ÒªÈ·±£· ......