From cb5b3d7700f2e6aede9617d8cf0870297577a941 Mon Sep 17 00:00:00 2001 From: pk Date: Sun, 12 Mar 1995 18:56:57 +0000 Subject: [PATCH] Add a pmap_pa_exists() in the non MACHINE_NONCONTIG case too. --- sys/arch/sparc/sparc/pmap.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sys/arch/sparc/sparc/pmap.c b/sys/arch/sparc/sparc/pmap.c index b8e4353a57f1..61b70c756a89 100644 --- a/sys/arch/sparc/sparc/pmap.c +++ b/sys/arch/sparc/sparc/pmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap.c,v 1.39 1995/03/10 16:54:40 pk Exp $ */ +/* $NetBSD: pmap.c,v 1.40 1995/03/12 18:56:57 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -489,6 +489,16 @@ init_translations() return (pages); } +int +pmap_pa_exists(pa) + vm_offset_t pa; +{ + /* Holes covered by HWTOSW() translations. */ + if (pa < vm_first_phys + vm_num_phys) /* XXX - too restrictive ? */ + return 1; + return 0; +} + #else /* MACHINE_NONCONTIG */ /*