diff options
author | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-08-05 19:23:23 +0000 |
---|---|---|
committer | Kanoj Sarcar <kanoj@engr.sgi.com> | 2000-08-05 19:23:23 +0000 |
commit | f50251b7156e1b2f6866898df1b81a19f845c0f1 (patch) | |
tree | 4f3287591fa5f2356f26a4883dd59fd2f561198b /arch/mips64/sgi-ip27 | |
parent | 58ed4f3e640185842bf81a9be49d6fef8feba258 (diff) |
Tweak the initialization macros so that they work even on a system
that has no physical address 0 (non nasid 0 systems).
Diffstat (limited to 'arch/mips64/sgi-ip27')
-rw-r--r-- | arch/mips64/sgi-ip27/ip27-klnuma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-klnuma.c b/arch/mips64/sgi-ip27/ip27-klnuma.c index 84d1a5465..5891e017e 100644 --- a/arch/mips64/sgi-ip27/ip27-klnuma.c +++ b/arch/mips64/sgi-ip27/ip27-klnuma.c @@ -136,9 +136,7 @@ pfn_t node_getfirstfree(cnodeid_t cnode) loadbase = CKSSEG + 16777216; #endif offset = PAGE_ALIGN((unsigned long)(&_end)) - loadbase; - if (cnode == 0) - return (offset >> PAGE_SHIFT); - else if (CPUMASK_TSTB(ktext_repmask, cnode)) + if ((cnode == 0) || (CPUMASK_TSTB(ktext_repmask, cnode))) return (TO_NODE(nasid, offset) >> PAGE_SHIFT); else return (KDM_TO_PHYS(PAGE_ALIGN(SYMMON_STK_ADDR(nasid, 0))) >> |