Only set internal_function to "stdcall" on i386
authorKevin Klues <klueska@cs.berkeley.edu>
Wed, 10 Dec 2014 14:53:46 +0000 (06:53 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 31 Dec 2014 18:03:09 +0000 (13:03 -0500)
user/parlib/include/x86/arch.h

index 55f65ab..af0eb86 100644 (file)
@@ -6,11 +6,10 @@
 #include <ros/common.h>
 #include <string.h>
 
-#define internal_function   __attribute ((regparm (3), stdcall))
-
 #define ARCH_CL_SIZE 64
 #ifdef __x86_64__
 
+#define internal_function 
 #define X86_REG_BP                                     "rbp"
 #define X86_REG_SP                                     "rsp"
 #define X86_REG_IP                                     "rip"
@@ -21,6 +20,7 @@
 
 #else /* 32 bit */
 
+#define internal_function   __attribute ((regparm (3), stdcall))
 #define X86_REG_BP                                     "ebp"
 #define X86_REG_SP                                     "esp"
 #define X86_REG_IP                                     "eip"