summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-08-24 20:07:05 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-08-24 20:07:05 +0000
commita5dfa8538643365387c5dbf31284a9abd3ea37dc (patch)
treebb2797597036a0c43209927e01c4ef0423accbcb /arch
parent4719afdba49c9d25a441fea4bbc2a6f95f007203 (diff)
On an SMP system, every cpu should use the master node's IOC3 uart port
for printk output, instead of trying to access its own.
Diffstat (limited to 'arch')
-rw-r--r--arch/mips64/arc/console.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips64/arc/console.c b/arch/mips64/arc/console.c
index a3cfb92d2..6d6442799 100644
--- a/arch/mips64/arc/console.c
+++ b/arch/mips64/arc/console.c
@@ -18,15 +18,14 @@
#include <asm/sn/sn0/hub.h>
#include <asm/sn/klconfig.h>
#include <asm/ioc3.h>
+#include <asm/sn/sn_private.h>
void prom_putchar(char c)
{
struct ioc3 *ioc3;
struct ioc3_uartregs *uart;
- nasid_t nid;
- nid = get_nasid();
- ioc3 = (struct ioc3 *) KL_CONFIG_CH_CONS_INFO(nid)->memory_base;
+ ioc3 = (struct ioc3 *)KL_CONFIG_CH_CONS_INFO(master_nasid)->memory_base;
uart = &ioc3->sregs.uarta;
while ((uart->iu_lsr & 0x20) == 0);