]> Git Repo - linux.git/commitdiff
[PATCH] v850: Define pfn_valid
authorMiles Bader <[email protected]>
Wed, 27 Jul 2005 18:44:52 +0000 (11:44 -0700)
committerLinus Torvalds <[email protected]>
Wed, 27 Jul 2005 23:26:02 +0000 (16:26 -0700)
Signed-off-by: Miles Bader <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/asm-v850/page.h

index 06085b0c043e3a9a6abb678bdde573da89f8738a..d6091622935d101df33649bbde47b6a28f7b40da 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * include/asm-v850/page.h -- VM ops
  *
- *  Copyright (C) 2001,02,03  NEC Electronics Corporation
- *  Copyright (C) 2001,02,03  Miles Bader <[email protected]>
+ *  Copyright (C) 2001,02,03,05  NEC Electronics Corporation
+ *  Copyright (C) 2001,02,03,05  Miles Bader <[email protected]>
  *
  * This file is subject to the terms and conditions of the GNU General
  * Public License.  See the file COPYING in the main directory of this
@@ -132,6 +132,7 @@ extern __inline__ int get_order (unsigned long size)
 
 #define pfn_to_page(pfn)       virt_to_page (pfn_to_virt (pfn))
 #define page_to_pfn(page)      virt_to_pfn (page_to_virt (page))
+#define pfn_valid(pfn)         ((pfn) < max_mapnr)
 
 #define        virt_addr_valid(kaddr)                                          \
   (((void *)(kaddr) >= (void *)PAGE_OFFSET) && MAP_NR (kaddr) < max_mapnr)
This page took 0.052677 seconds and 4 git commands to generate.