--- cpuid.asm 2004/07/10 17:42:18 1.6 +++ cpuid.asm 2004/08/29 10:02:38 1.9 @@ -19,7 +19,7 @@ ; * along with this program ; if not, write to the Free Software ; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ; * -; * $Id: cpuid.asm,v 1.6 2004/07/10 17:42:18 edgomez Exp $ +; * $Id: cpuid.asm,v 1.9 2004/08/29 10:02:38 edgomez Exp $ ; * ; ***************************************************************************/ @@ -27,10 +27,19 @@ %macro cglobal 1 %ifdef PREFIX - global _%1 - %define %1 _%1 + %ifdef MARK_FUNCS + global _%1:function %1.endfunc-%1 + %define %1 _%1:function %1.endfunc-%1 + %else + global _%1 + %define %1 _%1 + %endif %else - global %1 + %ifdef MARK_FUNCS + global %1:function %1.endfunc-%1 + %else + global %1 + %endif %endif %endmacro @@ -62,9 +71,9 @@ ALIGN 32 %ifdef FORMAT_COFF -SECTION .rodata data +SECTION .rodata %else -SECTION .rodata data align=16 +SECTION .rodata align=16 %endif vendorAMD: @@ -180,6 +189,7 @@ pop ebx ret +.endfunc ; sse/sse2 operating support detection routines ; these will trigger an invalid instruction signal if not supported. @@ -188,6 +198,7 @@ sse_os_trigger: xorps xmm0, xmm0 ret +.endfunc ALIGN 16 @@ -195,6 +206,7 @@ sse2_os_trigger: xorpd xmm0, xmm0 ret +.endfunc ; enter/exit mmx state @@ -203,6 +215,7 @@ emms_mmx: emms ret +.endfunc ; faster enter/exit mmx state ALIGN 16 @@ -210,3 +223,6 @@ emms_3dn: femms ret +.endfunc + +