mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 01:22:37 +03:00
[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:
11
src/arch/i386/include/bits/compiler.h
Normal file
11
src/arch/i386/include/bits/compiler.h
Normal 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 */
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user