From 126ecc3dda76ae6df1513d1123db3538be9a02e3 Mon Sep 17 00:00:00 2001 From: gwr Date: Tue, 17 Oct 1995 23:16:40 +0000 Subject: [PATCH] Explain why sun3_context_equiv() can not just call set_segmap_allctx(). --- sys/arch/sun3/sun3/locore2.c | 10 +++++++++- sys/arch/sun3/sun3/sun3_startup.c | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/sys/arch/sun3/sun3/locore2.c b/sys/arch/sun3/sun3/locore2.c index 177f746018f6..3f3ef2eb9abb 100644 --- a/sys/arch/sun3/sun3/locore2.c +++ b/sys/arch/sun3/sun3/locore2.c @@ -1,4 +1,4 @@ -/* $NetBSD: locore2.c,v 1.47 1995/09/26 04:02:27 gwr Exp $ */ +/* $NetBSD: locore2.c,v 1.48 1995/10/17 23:16:40 gwr Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -204,6 +204,14 @@ void Debugger() } #endif /* DDB */ +/* + * Duplicate all mappings in the current context into + * every other context. We have to let the PROM do the + * actual segmap manipulation because we can only switch + * the MMU context after we are sure that the kernel text + * is identically mapped in all contexts. The PROM can + * do the job using hardware-dependent tricks... + */ void sun3_context_equiv() { unsigned int i, sme; diff --git a/sys/arch/sun3/sun3/sun3_startup.c b/sys/arch/sun3/sun3/sun3_startup.c index ee97c0db689b..d6fa52d8dddd 100644 --- a/sys/arch/sun3/sun3/sun3_startup.c +++ b/sys/arch/sun3/sun3/sun3_startup.c @@ -1,4 +1,4 @@ -/* $NetBSD: sun3_startup.c,v 1.47 1995/09/26 04:02:27 gwr Exp $ */ +/* $NetBSD: sun3_startup.c,v 1.48 1995/10/17 23:16:40 gwr Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -204,6 +204,14 @@ void Debugger() } #endif /* DDB */ +/* + * Duplicate all mappings in the current context into + * every other context. We have to let the PROM do the + * actual segmap manipulation because we can only switch + * the MMU context after we are sure that the kernel text + * is identically mapped in all contexts. The PROM can + * do the job using hardware-dependent tricks... + */ void sun3_context_equiv() { unsigned int i, sme;