Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Sep 2002 20:39:31 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 17822 for review
Message-ID:  <200209210339.g8L3dVaw009477@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17822

Change 17822 by peter@peter_daintree on 2002/09/20 20:38:52

	shoot silly bcopy etc indirection that we dont use.

Affected files ...

.. //depot/projects/hammer/sys/x86_64/include/md_var.h#4 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/pmap.c#3 edit

Differences ...

==== //depot/projects/hammer/sys/x86_64/include/md_var.h#4 (text+ko) ====

@@ -38,10 +38,7 @@
 
 extern	long	Maxmem;
 extern	u_int	atdevbase;	/* offset in virtual memory of ISA io mem */
-extern	void	(*bcopy_vector)(const void *from, void *to, size_t len);
 extern	int	busdma_swi_pending;
-extern	int	(*copyin_vector)(const void *udaddr, void *kaddr, size_t len);
-extern	int	(*copyout_vector)(const void *kaddr, void *udaddr, size_t len);
 extern	u_int	cpu_feature;
 extern	u_int	cpu_high;
 extern	u_int	cpu_id;
@@ -50,7 +47,6 @@
 extern	u_int	cyrix_did;
 extern	uint16_t *elan_mmcr;
 extern	char	kstack[];
-extern	void	(*ovbcopy_vector)(const void *from, void *to, size_t len);
 extern	char	sigcode[];
 extern	int	szsigcode;
 
@@ -75,12 +71,7 @@
 void	doreti_popl_fs(void) __asm(__STRING(doreti_popl_fs));
 void	doreti_popl_fs_fault(void) __asm(__STRING(doreti_popl_fs_fault));
 void	fillw(int /*u_short*/ pat, void *base, size_t cnt);
-void	i486_bzero(void *buf, size_t len);
-void	i586_bcopy(const void *from, void *to, size_t len);
-void	i586_bzero(void *buf, size_t len);
-int	i586_copyin(const void *udaddr, void *kaddr, size_t len);
-int	i586_copyout(const void *kaddr, void *udaddr, size_t len);
-void	i686_pagezero(void *addr);
+void	pagezero(void *addr);
 void	init_AMD_Elan_sc520(void);
 int	is_physical_memory(vm_offset_t addr);
 u_long	kvtop(void *addr);

==== //depot/projects/hammer/sys/x86_64/x86_64/pmap.c#3 (text+ko) ====

@@ -2709,12 +2709,7 @@
 	curthread->td_switchin = pmap_zpi_switchin2;
 #endif
 	invlpg((u_int)CADDR2);
-#if defined(I686_CPU)
-	if (cpu_class == CPUCLASS_686)
-		i686_pagezero(CADDR2);
-	else
-#endif
-		bzero(CADDR2, PAGE_SIZE);
+	pagezero(CADDR2);
 #ifdef SMP
 	curthread->td_switchin = NULL;
 #endif
@@ -2740,11 +2735,9 @@
 	curthread->td_switchin = pmap_zpi_switchin2;
 #endif
 	invlpg((u_int)CADDR2);
-#if defined(I686_CPU)
-	if (cpu_class == CPUCLASS_686 && off == 0 && size == PAGE_SIZE)
-		i686_pagezero(CADDR2);
+	if (off == 0 && size == PAGE_SIZE)
+		pagezero(CADDR2);
 	else
-#endif
 		bzero((char *)CADDR2 + off, size);
 #ifdef SMP
 	curthread->td_switchin = NULL;
@@ -2771,12 +2764,7 @@
 	curthread->td_switchin = pmap_zpi_switchin3;
 #endif
 	invlpg((u_int)CADDR3);
-#if defined(I686_CPU)
-	if (cpu_class == CPUCLASS_686)
-		i686_pagezero(CADDR3);
-	else
-#endif
-		bzero(CADDR3, PAGE_SIZE);
+	pagezero(CADDR3);
 #ifdef SMP
 	curthread->td_switchin = NULL;
 #endif

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209210339.g8L3dVaw009477>