Changeset View
Changeset View
Standalone View
Standalone View
head/sys/i386/i386/support.s
Show First 20 Lines • Show All 246 Lines • ▼ Show 20 Lines | ENTRY(memcpy) | ||||
rep | rep | ||||
movsb | movsb | ||||
popl %esi | popl %esi | ||||
popl %edi | popl %edi | ||||
ret | ret | ||||
END(memcpy) | END(memcpy) | ||||
/* | /* | ||||
* fuswintr() and suswintr() are specialized variants of fuword16() and | |||||
* suword16(), respectively. They are called from the profiling code, | |||||
* potentially at interrupt time. If they fail, that's okay; good things | |||||
* will happen later. They always fail for now, until the trap code is | |||||
* able to deal with this. | |||||
*/ | |||||
ALTENTRY(suswintr) | |||||
ENTRY(fuswintr) | |||||
movl $-1,%eax | |||||
ret | |||||
END(suswintr) | |||||
END(fuswintr) | |||||
/* | |||||
* copystr(from, to, maxlen, int *lencopied) - MP SAFE | * copystr(from, to, maxlen, int *lencopied) - MP SAFE | ||||
*/ | */ | ||||
ENTRY(copystr) | ENTRY(copystr) | ||||
pushl %esi | pushl %esi | ||||
pushl %edi | pushl %edi | ||||
movl 12(%esp),%esi /* %esi = from */ | movl 12(%esp),%esi /* %esi = from */ | ||||
movl 16(%esp),%edi /* %edi = to */ | movl 16(%esp),%edi /* %edi = to */ | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |