Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/support.s
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | |||||
* bcopy(src, dst, cnt) | * bcopy(src, dst, cnt) | ||||
* ws@tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800 | * ws@tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800 | ||||
*/ | */ | ||||
ENTRY(bcopy) | ENTRY(bcopy) | ||||
movl 4(%esp),%eax | movl 4(%esp),%eax | ||||
movl 8(%esp),%edx | movl 8(%esp),%edx | ||||
movl %eax,8(%esp) | movl %eax,8(%esp) | ||||
movl %edx,4(%esp) | movl %edx,4(%esp) | ||||
MEXITCOUNT | |||||
jmp memmove | jmp memmove | ||||
END(bcopy) | END(bcopy) | ||||
ENTRY(memmove) | ENTRY(memmove) | ||||
pushl %ebp | pushl %ebp | ||||
movl %esp,%ebp | movl %esp,%ebp | ||||
pushl %esi | pushl %esi | ||||
pushl %edi | pushl %edi | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | 1: | ||||
movl %eax,%ss | movl %eax,%ss | ||||
movl $KPSEL,%eax | movl $KPSEL,%eax | ||||
movl %eax,%fs | movl %eax,%fs | ||||
/* reload code selector by turning return into intersegmental return */ | /* reload code selector by turning return into intersegmental return */ | ||||
movl (%esp),%eax | movl (%esp),%eax | ||||
pushl %eax | pushl %eax | ||||
movl $KCSEL,4(%esp) | movl $KCSEL,4(%esp) | ||||
MEXITCOUNT | |||||
lret | lret | ||||
END(lgdt) | END(lgdt) | ||||
/* ssdtosd(*ssdp,*sdp) */ | /* ssdtosd(*ssdp,*sdp) */ | ||||
ENTRY(ssdtosd) | ENTRY(ssdtosd) | ||||
pushl %ebx | pushl %ebx | ||||
movl 8(%esp),%ecx | movl 8(%esp),%ecx | ||||
movl 8(%ecx),%ebx | movl 8(%ecx),%ebx | ||||
▲ Show 20 Lines • Show All 343 Lines • Show Last 20 Lines |