Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/chs-ubc2]: src/sys/vm remove casts in round_page() and trunc_page(); the...
details: https://anonhg.NetBSD.org/src/rev/b0ba83bd4d16
branches: chs-ubc2
changeset: 471456:b0ba83bd4d16
user: chs <chs%NetBSD.org@localhost>
date: Wed Aug 11 05:39:16 1999 +0000
description:
remove casts in round_page() and trunc_page(); these are now used for
uvm_object offsets as well as virtual addresses.
diffstat:
sys/vm/vm_param.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 21d019aa1352 -r b0ba83bd4d16 sys/vm/vm_param.h
--- a/sys/vm/vm_param.h Mon Aug 09 00:05:53 1999 +0000
+++ b/sys/vm/vm_param.h Wed Aug 11 05:39:16 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_param.h,v 1.19.2.1.2.1 1999/06/21 01:48:00 thorpej Exp $ */
+/* $NetBSD: vm_param.h,v 1.19.2.1.2.2 1999/08/11 05:39:16 chs Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -145,9 +145,9 @@
* for either addresses or counts (i.e., 1 byte rounds to 1 page).
*/
#define round_page(x) \
- ((vaddr_t)((((vaddr_t)(x)) + PAGE_MASK) & ~PAGE_MASK))
+ (((x) + PAGE_MASK) & ~PAGE_MASK)
#define trunc_page(x) \
- ((vaddr_t)(((vaddr_t)(x)) & ~PAGE_MASK))
+ ((x) & ~PAGE_MASK)
extern psize_t mem_size; /* size of physical memory (bytes) */
Home |
Main Index |
Thread Index |
Old Index