Code: Select all
/* Entry point: */
.extern SysCallEntry
.globl x86CallGateEntry
x86CallGateEntry:
pusha
pushl %ds
pushl %es
movl %ss, %eax
movl %eax, %ds
movl %eax, %es
call SysCallEntry
popl %es
popl %ds
popa
iret
/* Cpp Function: */
ASMLINKABLE void x86::SysCall::SysCallEntry(unsigned int ES, unsigned int DS, x86::ISRs::GeneralRegisters r, unsigned int EIP, unsigned int CS, unsigned int Flags)
{
Display::printf("Unimplemented...\n");
}Code: Select all
movl $0xc000325f,%eax
>> movl %eax,0x4(%esp,1) <<
jmp c0001680Does anyone know the convention for optimized calls?
