About the use cpu_asm.s

Ray xr at trasin.net
Sat Jun 23 07:44:06 UTC 2007





-------------------------------------------------------------
From: mao ye
Date: 2007-06-23 01:34:00
To:   rtems-users at rtems.org
CC:
Sub:  About the use cpu_asm.s

>>I note some of function are implemented in the cpu_asm.s.
>But I do not know how they can be use in other places.
>Such as:
>in the cpu_asm.s
>FRAME(_CPU_Context_restore_fp,sp,0,ra)
>and in some .c file it can be used.
>
>1,But in such .c file I can not find include"cpu_asm.s",how can the GCC know
>the _CPU_Context_restore_fp used in the .c file is implemented in the
>cpu_asm.s?

.global/.globl makes the symbol visible to linker

>2.What kind of function is needed to implemented in the cpu_asm.s?
>
Contex switch related normally


>Thanks.
>
>ye mao
>
>_______________________________________________
>rtems-users mailing list
>rtems-users at rtems.com
>http://rtems.rtems.org/mailman/listinfo/rtems-users
>

------------------
Thanks & Best Regards!
Ray
2007-06-23





More information about the users mailing list