summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-25 15:52:12 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2005-11-25 15:52:12 +0000
commit2a136c19e9d0676d2e49a70c8de917a953b8485f (patch)
treedc6a32499207a4a4473f8fed1dc71e7946d54b57 /sys/uvm
parent93b430702decf4849480e40da754bfa558462b11 (diff)
do not use any casting in the atop/ptoa; tested on all archs by martin@ miod@ mickey@
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_param.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_param.h b/sys/uvm/uvm_param.h
index b0a244d8a62..1458ef02ac4 100644
--- a/sys/uvm/uvm_param.h
+++ b/sys/uvm/uvm_param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_param.h,v 1.9 2003/11/08 19:17:28 jmc Exp $ */
+/* $OpenBSD: uvm_param.h,v 1.10 2005/11/25 15:52:11 mickey Exp $ */
/* $NetBSD: uvm_param.h,v 1.5 2001/03/09 01:02:12 chs Exp $ */
/*
@@ -153,8 +153,8 @@ struct _ps_strings {
* No rounding is used.
*/
#ifdef _KERNEL
-#define atop(x) (((paddr_t)(x)) >> PAGE_SHIFT)
-#define ptoa(x) ((vaddr_t)((vaddr_t)(x) << PAGE_SHIFT))
+#define atop(x) ((x) >> PAGE_SHIFT)
+#define ptoa(x) ((x) << PAGE_SHIFT)
/*
* Round off or truncate to the nearest page. These will work