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

linuxÄÚºËÖпªÍ·´øÓÐ asmlinkage µÄº¯Êý±íʾʲô

Ç¿ÖÆÍ¨¹ý¶ÑÕ»´«µÝ²ÎÊý£¬²»ÒªÓüĴæÆ÷´«µÝ
×Ðϸ¿´Ò»ÏÂÓÐasmlinkageµÄµØ·½Í¨³£ÊÇϵͳµ÷Óõĺ¯Êý£¬ÒòΪÔÚϵͳµ÷ÓÃÖУ¬¼Ä´æÆ÷´ÓÓû§¿Õ¼ä´«¹ýÀ´ºóSAVE_ALLѹÈë¶ÑÕ»£¬½Ó×ŵ÷ÓÃÏàÓ¦µÄϵͳµ÷Óú¯Êý£¬ÕâÑùϵͳµ÷Óú¯ÊýÒ»¶¨Òª±£Ö¤ÊÇͨ¹ý¶ÑÕ»´«µÝ²ÎÊýµÄ
תÌùÒ»¶Î£º
The asmlinkage tag is one other thing that we should observe about this simple function. This is a #define for some gcc magic that tells the compiler that the function should not expect to find any of its arguments in registers (a common optimization), but only on the CPU's stack. Recall our earlier assertion that system_call consumes its first argument, the system call number, and allows up to four more arguments that are passed along to the real system call. system_call achieves this feat simply by leaving its other arguments (which were passed to it in registers) on the stack. All system calls are marked with the asmlinkage tag, so they all look to the stack for arguments. Of course, in sys_ni_syscall's case, this doesn't make any difference, because sys_ni_syscall doesn't take any arguments, but it's an issue for most other system calls. And, because you'll be seeing asmlinkage in front of many other functions, I thought you should know what it was about.


Ïà¹ØÎĵµ£º

ʹÓÃGTK+ºÍGlade¿ìËÙ¿ª·¢LinuxͼÐνçÃæ


ʹÓÃGTK+ºÍGlade¿ìËÙ¿ª·¢LinuxͼÐνçÃæ
Glade
,
GTK
,
Linux
,
draft
,
ͼÐÎ
* ʹÓà GTK+ ºÍ Glade ¿ìËÙ¿ª·¢
Linux
ͼÐνçÃæ
** GTK+ ¼ò½é
*** »ù±¾¸ÅÄî
GTK+ ÊÇÒ»ÖÖÓÃÓÚ´´½¨Í¼ÐνçÃæµÄ¿â. àÅ, gnome ÓõľÍÊÇËü, ²»¹ý²¢²»ÊÇ˵ֻ
ÓÐÔÚ gnome »·¾³ÖвÅÄÜÓÃ, ֻҪϵͳ
ÉÏ×°ÓÐ GTK µÄ¿â (»ù±¾ÉÏÓÐͼР......

LinuxÄÚºËÈëÃÅ£¨Èý£©—— CÓïÑÔ»ù±¾¹¦

    linuxÊÇÒ»¸ö¸´ÔÓµÄÈí¼þϵͳ£¬ÆäÄÚºËÔ´´úÂëÍùÍù»áÓõ½Ò»Ð©ÔÚÓ¦ÓóÌÐòÉè¼ÆÖв¿³£¼ûÓïÑԳɷֺͱà³Ì¼¼ÇÉ£¬ÕâЩ¶¼ÊÇ·ÖÎöÄÚºËÔ´´úÂëµÄ»ù±¾¹¦£¬Ï£Íû´ó¼ÒÄÜÖØµãÕÆÎÕ¡£
    Ê×ÏÈ£¬gcc±àÒëÆ÷´ÓÓïÑÔÀïÎüÊÕÁË“inline”ºÍ“const”¡£inlineº¯ÊýµÄ´óÁ¿Ê¹Óã¬ÓÐÀûÓÚÌá¸ßÔËÐ ......

¹¹½¨ARM Linux½»²æ±àÒ빤¾ßÁ´

2.2  ¹¹½¨ARM Linux½»²æ±àÒ빤¾ßÁ´
¹¹½¨½»²æ±àÒëÆ÷µÄµÚÒ»¸ö²½Öè¾ÍÊÇÈ·¶¨Ä¿±êƽ̨¡£ÔÚGNUϵͳÖУ¬Ã¿¸öÄ¿±êƽ̨¶¼ÓÐÒ»¸öÃ÷È·µÄ¸ñʽ£¬ÕâЩÐÅÏ¢ÓÃÓÚÔÚ¹¹½¨¹ý³ÌÖÐʶ±ðҪʹÓõIJ»Í¬¹¤¾ßµÄÕýÈ·°æ±¾¡£Òò´Ë£¬µ±ÔÚÒ»¸öÌØ¶¨Ä¿±ê»úÏÂÔËÐÐGCCʱ£¬GCC±ãÔÚĿ¼·¾¶ÖвéÕÒ°üº¬¸ÃÄ¿±ê¹æ·¶µÄÓ¦ÓóÌÐò·¾¶¡£GNUµÄÄ¿±ê¹æ·¶¸ñʽΪCPU-PLATF ......

ÔõÑù´´½¨ÕæÕýºÜСµÄLinuxϵÄELF¿ÉÖ´ÐÐÎļþ


ÔõÑù´´½¨ÕæÕýºÜСµÄLinuxϵÄELF¿ÉÖ´ÐÐÎļþ
×ªÔØ: ELFÎļþ¸ñʽÑо¿
ÈÕÆÚ: Friday, July 25 @ 14:46:16 CST
Ö÷Ì⣺ Èí¼þ¿ª·¢

·¢ÐÅÈË: someone (++), ÐÅÇø: Linux

±ê Ìâ: ÔõÑù´´½¨ÕæÕýºÜСµÄLinuxϵÄELF¿ÉÖ´ÐÐÎļþ
·¢ÐÅÕ¾: ......

linux ϵij¬¼¶ÖÕ¶Ëminicom

ÐéÄâ»úÏÂlinuxÏ¿ÉÒÔÓÃʹÓÃÖ÷»úµÄ´®¿Ú(ÐéÄâ»úÌí¼ÓÓ²¼þÀïÃæ¿ÉÑ¡)
linuxϵij¬¼¶ÖÕ¶Ëminicom
½øÈ볬¼¶Öն˵ÄÃüÁî
[root]#minicom -s
Ñ¡Ôñ´®¿ÚÒ»Ïî
ÐèÒªÉ趨´®¿ÚttyS0£¨ÄãµÄ´®¿ÚµÄÉ豸Ãû£©
²¨ÌØÂÊ115200
Ó²¼þÁ÷¿Ø¹Ø±Õ£¨Ä¬ÈÏÊÇ¿ªÆô£¬Èç¹û¿ªÆôµÄ»°£¬²»ÄÜÓüüÅÌÊäÈ룩
Èí¼þÁ÷¿Ø¹Ø±Õ
Save setup as dfl
exit
OK£¬Õâ¾Í¿É ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ