[i386] Rename __cdecl to __asmcall

__cdecl is a misleading name, since it currently encapsulates both
cdecl and regparm(0) attributes.  Rename to __asmcall.
This commit is contained in:
Michael Brown
2008-11-18 16:18:32 -08:00
parent 446b6d5fdd
commit dc60c24146
14 changed files with 32 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
#ifndef _BITS_COMPILER_H
#define _BITS_COMPILER_H
#ifndef ASSEMBLY
/** Declare a function with standard calling conventions */
#define __asmcall __attribute__ (( cdecl, regparm(0) ))
#endif /* ASSEMBLY */
#endif /* _BITS_COMPILER_H */

View File

@@ -30,6 +30,6 @@ extern void pxe_hook_int1a ( void );
extern int pxe_unhook_int1a ( void );
extern void pxe_init_structures ( void );
extern int pxe_start_nbp ( void );
extern __cdecl void pxe_api_call ( struct i386_all_regs *ix86 );
extern __asmcall void pxe_api_call ( struct i386_all_regs *ix86 );
#endif /* _PXE_CALL_H */

View File

@@ -6,7 +6,7 @@
#define JBLEN 6
typedef unsigned long jmp_buf[JBLEN];
extern int __cdecl setjmp (jmp_buf env);
extern void __cdecl longjmp (jmp_buf env, int val);
extern int __asmcall setjmp (jmp_buf env);
extern void __asmcall longjmp (jmp_buf env, int val);
#endif /* ETHERBOOT_SETJMP_H */