summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-06-09 02:26:05 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-06-09 02:26:05 +0000
commitb2e03c8a89be152adf294f1baaadac6561b39bc6 (patch)
tree3f6e91aa00db80547f7777a71d1bcae9277bf294
parent77a06fc1bcf4ac35e479b727ce1e0408268bac1c (diff)
Need to have the nasid of the boot/master node for future uses.
-rw-r--r--arch/mips64/sgi-ip27/ip27-init.c2
-rw-r--r--include/asm-mips64/sn/sn_private.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-init.c b/arch/mips64/sgi-ip27/ip27-init.c
index b68ed3f72..65d02b7b7 100644
--- a/arch/mips64/sgi-ip27/ip27-init.c
+++ b/arch/mips64/sgi-ip27/ip27-init.c
@@ -42,6 +42,7 @@ int maxcpus;
static spinlock_t hub_mask_lock = SPIN_LOCK_UNLOCKED;
static cnodemask_t hub_init_mask;
static atomic_t numstarted = ATOMIC_INIT(1);
+nasid_t master_nasid = INVALID_NASID;
cnodeid_t nasid_to_compact_node[MAX_NASIDS];
nasid_t compact_to_nasid_node[MAX_COMPACT_NODES];
@@ -190,6 +191,7 @@ void mlreset (void)
{
int i;
+ master_nasid = get_nasid();
fine_mode = is_fine_dirmode();
/*
diff --git a/include/asm-mips64/sn/sn_private.h b/include/asm-mips64/sn/sn_private.h
index bb84f16b8..780359491 100644
--- a/include/asm-mips64/sn/sn_private.h
+++ b/include/asm-mips64/sn/sn_private.h
@@ -1,3 +1,5 @@
+extern nasid_t master_nasid;
+
extern cnodeid_t get_compact_nodeid(void);
extern void hub_rtc_init(cnodeid_t);
extern void cpu_time_init(void);