summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-06-06 20:36:09 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-06-06 20:36:09 +0000
commitae7b68de40ce4d1933c7e0766d2f01e9babc4be8 (patch)
tree0f383e878392e3cc8531246cd0c96de1a032a314 /arch/mips64/sgi-ip27
parentaae5af617aadd61a78efcc6f8d326477af081676 (diff)
Get some type definitions into their rightful places for wider usage.
Diffstat (limited to 'arch/mips64/sgi-ip27')
-rw-r--r--arch/mips64/sgi-ip27/ip27-memory.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-memory.c b/arch/mips64/sgi-ip27/ip27-memory.c
index 6633f3099..f0db21bc0 100644
--- a/arch/mips64/sgi-ip27/ip27-memory.c
+++ b/arch/mips64/sgi-ip27/ip27-memory.c
@@ -27,9 +27,6 @@
#include <asm/sn/arch.h>
#include <asm/mmzone.h>
-typedef unsigned long pfn_t; /* into <asm/sn/types.h> */
-#define KDM_TO_PHYS(x) ((x) & TO_PHYS_MASK) /* into asm/addrspace.h */
-
extern char _end;
#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
@@ -57,11 +54,15 @@ int numa_debug(void)
*/
pfn_t node_getfirstfree(cnodeid_t cnode)
{
+ unsigned long loadbase = CKSEG0;
nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode);
+#ifdef CONFIG_MAPPED_KERNEL
+ loadbase = CKSSEG;
+#endif
if (cnode == 0)
return (KDM_TO_PHYS(PAGE_ALIGN((unsigned long)(&_end)) -
- (CKSEG0 - K0BASE)) >> PAGE_SHIFT);
+ (loadbase - K0BASE)) >> PAGE_SHIFT);
return (KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> PAGE_SHIFT);
}