Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbppc Revert this commit:



details:   https://anonhg.NetBSD.org/src/rev/8b6e64334bcc
branches:  trunk
changeset: 1019320:8b6e64334bcc
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Mar 07 09:43:56 2021 +0000

description:
Revert this commit:

http://www.nerv.org/netbsd/?q=id:20210305T064016Z.410b0e33273c3a62110d09e8bb27939f6a8bab38

> Map framebuffer to virtual space when fb(4) is present,
> even if it is not console.

Direct mapping for framebuffer is required only if fb(4) is console.

XXX
It would be nice if we can remove reserved TLB entries after
fb(4) is properly attached.

diffstat:

 sys/arch/evbppc/conf/files.explora |  4 ++--
 sys/arch/evbppc/explora/machdep.c  |  7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 036a620a9bf4 -r 8b6e64334bcc sys/arch/evbppc/conf/files.explora
--- a/sys/arch/evbppc/conf/files.explora        Sun Mar 07 08:57:38 2021 +0000
+++ b/sys/arch/evbppc/conf/files.explora        Sun Mar 07 09:43:56 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.explora,v 1.12 2021/03/05 06:40:15 rin Exp $
+#      $NetBSD: files.explora,v 1.13 2021/03/07 09:43:56 rin Exp $
 
 # maxpartitions must be first item in files.${ARCH}
 
@@ -50,4 +50,4 @@
 
 device fb: wsemuldisplaydev, rasops8
 attach fb at elb with fb_elb
-file   arch/evbppc/explora/dev/fb_elb.c        fb_elb          needs-flag
+file   arch/evbppc/explora/dev/fb_elb.c        fb_elb
diff -r 036a620a9bf4 -r 8b6e64334bcc sys/arch/evbppc/explora/machdep.c
--- a/sys/arch/evbppc/explora/machdep.c Sun Mar 07 08:57:38 2021 +0000
+++ b/sys/arch/evbppc/explora/machdep.c Sun Mar 07 09:43:56 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.45 2021/03/05 07:06:15 rin Exp $ */
+/*     $NetBSD: machdep.c,v 1.46 2021/03/07 09:43:56 rin Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -30,12 +30,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2021/03/05 07:06:15 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.46 2021/03/07 09:43:56 rin Exp $");
 
 #include "opt_explora.h"
 #include "opt_modular.h"
 
-#include "fb_elb.h"
 #include "ksyms.h"
 
 #include <sys/param.h>
@@ -121,7 +120,7 @@
        /* Map PCKBC, PCKBC2, COM, LPT. This is far beyond physmem. */
        ppc4xx_tlb_reserve(BASE_ISA, BASE_ISA, TLB_PG_SIZE, TLB_I | TLB_G);
 
-#if NFB_ELB > 0
+#ifndef COM_IS_CONSOLE
        ppc4xx_tlb_reserve(BASE_FB,  BASE_FB,  TLB_PG_SIZE, TLB_I | TLB_G);
        ppc4xx_tlb_reserve(BASE_FB2, BASE_FB2, TLB_PG_SIZE, TLB_I | TLB_G);
 #endif



Home | Main Index | Thread Index | Old Index