summaryrefslogtreecommitdiffstats
path: root/sys/i386/xen/pmap.c
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2009-08-31 23:30:39 +0000
committeradrian <adrian@FreeBSD.org>2009-08-31 23:30:39 +0000
commit08a823972b3a0c2d0b05b5af0c3ae5dc32649521 (patch)
treed1f7c12e10fb771295cc136239c58d7b6f009b9b /sys/i386/xen/pmap.c
parent163abd382b85a67343f4b21f5e748d95243859ad (diff)
downloadFreeBSD-src-08a823972b3a0c2d0b05b5af0c3ae5dc32649521.zip
FreeBSD-src-08a823972b3a0c2d0b05b5af0c3ae5dc32649521.tar.gz
Shuffle pagezero() into the same location as in sys/i386/i386/pmap.c.
Diffstat (limited to 'sys/i386/xen/pmap.c')
-rw-r--r--sys/i386/xen/pmap.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/i386/xen/pmap.c b/sys/i386/xen/pmap.c
index 9dc077f..52b41e9 100644
--- a/sys/i386/xen/pmap.c
+++ b/sys/i386/xen/pmap.c
@@ -328,22 +328,6 @@ CTASSERT(KERNBASE % (1 << 24) == 0);
-static __inline void
-pagezero(void *page)
-{
-#if defined(I686_CPU)
- if (cpu_class == CPUCLASS_686) {
-#if defined(CPU_ENABLE_SSE)
- if (cpu_feature & CPUID_SSE2)
- sse2_pagezero(page);
- else
-#endif
- i686_pagezero(page);
- } else
-#endif
- bzero(page, PAGE_SIZE);
-}
-
void
pd_set(struct pmap *pmap, int ptepindex, vm_paddr_t val, int type)
{
@@ -3343,6 +3327,22 @@ pmap_copy(pmap_t dst_pmap, pmap_t src_pmap, vm_offset_t dst_addr, vm_size_t len,
PMAP_UNLOCK(dst_pmap);
}
+static __inline void
+pagezero(void *page)
+{
+#if defined(I686_CPU)
+ if (cpu_class == CPUCLASS_686) {
+#if defined(CPU_ENABLE_SSE)
+ if (cpu_feature & CPUID_SSE2)
+ sse2_pagezero(page);
+ else
+#endif
+ i686_pagezero(page);
+ } else
+#endif
+ bzero(page, PAGE_SIZE);
+}
+
/*
* pmap_zero_page zeros the specified hardware page by mapping
* the page into KVM and using bzero to clear its contents.
OpenPOWER on IntegriCloud