Remove unused bcopyb.
Differential Revision: https://reviews.freebsd.org/D15374
This commit is contained in:
parent
baaa3c4d60
commit
3429b518c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333445
@ -145,37 +145,6 @@ ENTRY(fillw)
|
||||
ret
|
||||
END(fillw)
|
||||
|
||||
ENTRY(bcopyb)
|
||||
pushl %esi
|
||||
pushl %edi
|
||||
movl 12(%esp),%esi
|
||||
movl 16(%esp),%edi
|
||||
movl 20(%esp),%ecx
|
||||
movl %edi,%eax
|
||||
subl %esi,%eax
|
||||
cmpl %ecx,%eax /* overlapping && src < dst? */
|
||||
jb 1f
|
||||
rep
|
||||
movsb
|
||||
popl %edi
|
||||
popl %esi
|
||||
ret
|
||||
|
||||
ALIGN_TEXT
|
||||
1:
|
||||
addl %ecx,%edi /* copy backwards. */
|
||||
addl %ecx,%esi
|
||||
decl %edi
|
||||
decl %esi
|
||||
std
|
||||
rep
|
||||
movsb
|
||||
popl %edi
|
||||
popl %esi
|
||||
cld
|
||||
ret
|
||||
END(bcopyb)
|
||||
|
||||
/*
|
||||
* bcopy(src, dst, cnt)
|
||||
* ws@tools.de (Wolfgang Solfrank, TooLs GmbH) +49-228-985800
|
||||
|
@ -54,7 +54,6 @@ extern uintptr_t setidt_disp;
|
||||
struct segment_descriptor;
|
||||
union savefpu;
|
||||
|
||||
void bcopyb(const void *from, void *to, size_t len);
|
||||
int cp_slow0(vm_offset_t uva, size_t len, bool write,
|
||||
void (*f)(vm_offset_t, void *), void *arg);
|
||||
void cpu_switch_load_gs(void) __asm(__STRING(cpu_switch_load_gs));
|
||||
|
Loading…
Reference in New Issue
Block a user