summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale S. Rahn <rahnds@cvs.openbsd.org>2000-05-02 02:58:54 +0000
committerDale S. Rahn <rahnds@cvs.openbsd.org>2000-05-02 02:58:54 +0000
commit7589e0a7d2ef84884a83feeda04b5ccbe7f8544a (patch)
tree89d84aed543e6331a4760166f42ba88732f4390a
parent4de3547fd4e22e66f6d9f9dcf8a35a0f08b5f842 (diff)
Fix bug caused by <= comparison on unsigned value.
-rw-r--r--sys/arch/powerpc/powerpc/machdep.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c
index c7149619569..d2f60b2e232 100644
--- a/sys/arch/powerpc/powerpc/machdep.c
+++ b/sys/arch/powerpc/powerpc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.40 2000/04/02 00:14:31 rahnds Exp $ */
+/* $OpenBSD: machdep.c,v 1.41 2000/05/02 02:58:53 rahnds Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
@@ -1205,11 +1205,14 @@ mapiodev(pa, len)
return (void*) (va+off);
}
void
-unmapiodev(va, size)
+unmapiodev(va, p_size)
void *va;
- psize_t size;
+ psize_t p_size;
{
vaddr_t vaddr;
+ int size;
+
+ size = p_size;
vaddr = trunc_page(va);