mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +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:
@@ -41,7 +41,7 @@ uint16_t __bss16 ( com32_saved_sp );
|
||||
/**
|
||||
* Interrupt call helper
|
||||
*/
|
||||
void __cdecl com32_intcall ( uint8_t interrupt, physaddr_t inregs_phys, physaddr_t outregs_phys ) {
|
||||
void __asmcall com32_intcall ( uint8_t interrupt, physaddr_t inregs_phys, physaddr_t outregs_phys ) {
|
||||
|
||||
memcpy_user ( virt_to_user( &com32_regs ), 0,
|
||||
phys_to_user ( inregs_phys ), 0,
|
||||
@@ -111,7 +111,7 @@ void __cdecl com32_intcall ( uint8_t interrupt, physaddr_t inregs_phys, physaddr
|
||||
/**
|
||||
* Farcall helper
|
||||
*/
|
||||
void __cdecl com32_farcall ( uint32_t proc, physaddr_t inregs_phys, physaddr_t outregs_phys ) {
|
||||
void __asmcall com32_farcall ( uint32_t proc, physaddr_t inregs_phys, physaddr_t outregs_phys ) {
|
||||
|
||||
memcpy_user ( virt_to_user( &com32_regs ), 0,
|
||||
phys_to_user ( inregs_phys ), 0,
|
||||
@@ -170,7 +170,7 @@ void __cdecl com32_farcall ( uint32_t proc, physaddr_t inregs_phys, physaddr_t o
|
||||
/**
|
||||
* CDECL farcall helper
|
||||
*/
|
||||
int __cdecl com32_cfarcall ( uint32_t proc, physaddr_t stack, size_t stacksz ) {
|
||||
int __asmcall com32_cfarcall ( uint32_t proc, physaddr_t stack, size_t stacksz ) {
|
||||
int32_t eax;
|
||||
|
||||
copy_user_to_rm_stack ( phys_to_user ( stack ), stacksz );
|
||||
|
||||
@@ -212,7 +212,7 @@ void comboot_run_kernel ( )
|
||||
/**
|
||||
* Terminate program interrupt handler
|
||||
*/
|
||||
static __cdecl void int20 ( struct i386_all_regs *ix86 __unused ) {
|
||||
static __asmcall void int20 ( struct i386_all_regs *ix86 __unused ) {
|
||||
longjmp ( comboot_return, COMBOOT_RETURN_EXIT );
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ static __cdecl void int20 ( struct i386_all_regs *ix86 __unused ) {
|
||||
/**
|
||||
* DOS-compatible API
|
||||
*/
|
||||
static __cdecl void int21 ( struct i386_all_regs *ix86 ) {
|
||||
static __asmcall void int21 ( struct i386_all_regs *ix86 ) {
|
||||
ix86->flags |= CF;
|
||||
|
||||
switch ( ix86->regs.ah ) {
|
||||
@@ -287,7 +287,7 @@ static __cdecl void int21 ( struct i386_all_regs *ix86 ) {
|
||||
/**
|
||||
* SYSLINUX API
|
||||
*/
|
||||
static __cdecl void int22 ( struct i386_all_regs *ix86 ) {
|
||||
static __asmcall void int22 ( struct i386_all_regs *ix86 ) {
|
||||
ix86->flags |= CF;
|
||||
|
||||
switch ( ix86->regs.ax ) {
|
||||
|
||||
Reference in New Issue
Block a user