summaryrefslogtreecommitdiff
path: root/sys/arch/sh/sh/pmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sh/sh/pmap.c')
-rw-r--r--sys/arch/sh/sh/pmap.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/arch/sh/sh/pmap.c b/sys/arch/sh/sh/pmap.c
index 3f432895bb7..993aa056d7d 100644
--- a/sys/arch/sh/sh/pmap.c
+++ b/sys/arch/sh/sh/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: pmap.c,v 1.2 2006/10/06 21:16:57 mickey Exp $ */
/* $NetBSD: pmap.c,v 1.55 2006/08/07 23:19:36 tsutsui Exp $ */
/*-
@@ -157,6 +157,11 @@ pmap_steal_memory(vsize_t size, vaddr_t *vstart, vaddr_t *vend)
va = SH3_PHYS_TO_P1SEG(pa);
memset((caddr_t)va, 0, size);
+ if (vstart)
+ *vstart = VM_MIN_KERNEL_ADDRESS;
+ if (vend)
+ *vend = VM_MAX_KERNEL_ADDRESS;
+
return (va);
}
@@ -201,13 +206,6 @@ pmap_growkernel(vaddr_t maxkvaddr)
}
void
-pmap_virtual_space(vaddr_t *start, vaddr_t *end)
-{
- *start = VM_MIN_KERNEL_ADDRESS;
- *end = VM_MAX_KERNEL_ADDRESS;
-}
-
-void
pmap_init()
{
/* Initialize pmap module */