diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-06-09 20:43:44 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-06-09 20:43:44 +0000 |
commit | 6620a808afa94330b2446a2cfcc555474ac8a184 (patch) | |
tree | 61cd077aab9ee31a8d273bd904a1c9b890f68e73 /sys/arch | |
parent | 9979144e9848798e61e9e3d04945a4c24c308d0d (diff) |
Remove fillw(). Bonus points if you do not remember what it was used for.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/copy.S | 26 | ||||
-rw-r--r-- | sys/arch/amd64/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/locore.s | 26 | ||||
-rw-r--r-- | sys/arch/i386/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/mips64/mips64/lcore_access.S | 16 |
5 files changed, 5 insertions, 69 deletions
diff --git a/sys/arch/amd64/amd64/copy.S b/sys/arch/amd64/amd64/copy.S index 042e8112fac..36ca5ad4dab 100644 --- a/sys/arch/amd64/amd64/copy.S +++ b/sys/arch/amd64/amd64/copy.S @@ -1,4 +1,4 @@ -/* $OpenBSD: copy.S,v 1.3 2007/05/29 23:03:20 tom Exp $ */ +/* $OpenBSD: copy.S,v 1.4 2008/06/09 20:43:41 miod Exp $ */ /* $NetBSD: copy.S,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /* @@ -50,30 +50,6 @@ * I wonder if it's worthwhile to make these use SSE2 registers. */ -/* - * XXXfvdl appears only to be used by pccons. - * - * fillw(short pattern, caddr_t addr, size_t len); - * Write len copies of pattern at addr. - * appears to be used by pccons. - */ -ENTRY(fillw) - movl %edi,%eax - movq %rsi,%rdi - movw %ax,%cx - rorl $16,%eax - movw %cx,%ax - cld - movq %rdx,%rcx - shrq %rcx - rep - stosl - movq %rdx,%rcx - andq $1,%rcx - rep - stosw - ret - ENTRY(kcopy) movq CPUVAR(CURPCB),%rax pushq PCB_ONFAULT(%rax) diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index c69e2556eae..3f68639a5f6 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.34 2008/05/26 07:47:19 jasper Exp $ */ +/* $OpenBSD: cpu.h,v 1.35 2008/06/09 20:43:43 miod Exp $ */ /* $NetBSD: cpu.h,v 1.1 2003/04/26 18:39:39 fvdl Exp $ */ /*- @@ -278,7 +278,6 @@ void cpu_proc_fork(struct proc *, struct proc *); struct region_descriptor; void lgdt(struct region_descriptor *); -void fillw(short, void *, size_t); struct pcb; void savectx(struct pcb *); diff --git a/sys/arch/i386/i386/locore.s b/sys/arch/i386/i386/locore.s index 99081e83570..17e25ddc685 100644 --- a/sys/arch/i386/i386/locore.s +++ b/sys/arch/i386/i386/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.122 2008/03/22 16:25:08 weingart Exp $ */ +/* $OpenBSD: locore.s,v 1.123 2008/06/09 20:43:43 miod Exp $ */ /* $NetBSD: locore.s,v 1.145 1996/05/03 19:41:19 christos Exp $ */ /*- @@ -782,30 +782,6 @@ _C_LABEL(freebsd_esigcode): * The following primitives are used to fill and copy regions of memory. */ -/* - * fillw(short pattern, caddr_t addr, size_t len); - * Write len copies of pattern at addr. - */ -ENTRY(fillw) - pushl %edi - movl 8(%esp),%eax - movl 12(%esp),%edi - movw %ax,%cx - rorl $16,%eax - movw %cx,%ax - cld - movl 16(%esp),%ecx - shrl %ecx # do longwords - rep - stosl - movl 16(%esp),%ecx - andl $1,%ecx # do remainder - rep - stosw - popl %edi - ret - - /* Frame pointer reserve on stack. */ #ifdef DDB #define FPADD 4 diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index aa2e676f503..7632dbb53ce 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.101 2008/04/18 20:20:35 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.102 2008/06/09 20:43:43 miod Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -359,7 +359,6 @@ void cpuid(u_int32_t, u_int32_t *); /* locore.s */ struct region_descriptor; void lgdt(struct region_descriptor *); -void fillw(short, void *, size_t); struct pcb; void savectx(struct pcb *); diff --git a/sys/arch/mips64/mips64/lcore_access.S b/sys/arch/mips64/mips64/lcore_access.S index a6e2b25cdbc..344d2216c6c 100644 --- a/sys/arch/mips64/mips64/lcore_access.S +++ b/sys/arch/mips64/mips64/lcore_access.S @@ -1,4 +1,4 @@ -/* $OpenBSD: lcore_access.S,v 1.14 2008/04/07 22:37:18 miod Exp $ */ +/* $OpenBSD: lcore_access.S,v 1.15 2008/06/09 20:43:43 miod Exp $ */ /* * Copyright (c) 2001-2003 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -158,20 +158,6 @@ END(lp32_write8) #endif /* - * fillw(pat, addr, count) - */ -LEAF(fillw, 0) -1: - PTR_ADDU a2, a2, -1 - sh a0, 0(a1) - bne a2,zero, 1b - PTR_ADDU a1, a1, 2 - - jr ra - nop -END(fillw) - -/* * Optimized memory zero code. * mem_zero_page(addr); */ |