diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-25 22:13:51 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-11-25 22:13:51 +0000 |
commit | f611219645d5c7b769376c8f7ba9c1ae89175d2c (patch) | |
tree | 948616f87eead04e1227a780ae314cc873eab0db /sys/arch | |
parent | 510e83988dd7fa924ec8c522cb49c2d00f82b16c (diff) |
Need an explicit cast for atop() now.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/m88k/m88k/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/pmap.c b/sys/arch/m88k/m88k/pmap.c index 576bdcbd2ce..ceb2e6072a4 100644 --- a/sys/arch/m88k/m88k/pmap.c +++ b/sys/arch/m88k/m88k/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.15 2005/11/03 21:27:33 martin Exp $ */ +/* $OpenBSD: pmap.c,v 1.16 2005/11/25 22:13:50 miod Exp $ */ /* * Copyright (c) 2001-2004, Miodrag Vallat * Copyright (c) 1998-2001 Steve Murphree, Jr. @@ -723,7 +723,7 @@ pmap_bootstrap(vaddr_t load_start) * Switch to using new page tables */ - kernel_pmap->pm_apr = (atop(kmap) << PG_SHIFT) | + kernel_pmap->pm_apr = (atop((paddr_t)kmap) << PG_SHIFT) | CACHE_GLOBAL | CACHE_WT | APR_V; /* Invalidate entire kernel TLB and get ready for address translation */ |