Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/dev for ofb_enable_cache, turn on the BAT_M ...



details:   https://anonhg.NetBSD.org/src/rev/895fa5fcec2a
branches:  trunk
changeset: 534959:895fa5fcec2a
user:      chs <chs%NetBSD.org@localhost>
date:      Wed Aug 07 05:46:13 2002 +0000

description:
for ofb_enable_cache, turn on the BAT_M bit as well to prevent
the framebuffer from getting scrambled on MP systems.

diffstat:

 sys/arch/macppc/dev/ofb.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 903c7c0607ff -r 895fa5fcec2a sys/arch/macppc/dev/ofb.c
--- a/sys/arch/macppc/dev/ofb.c Wed Aug 07 05:38:47 2002 +0000
+++ b/sys/arch/macppc/dev/ofb.c Wed Aug 07 05:46:13 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofb.c,v 1.29 2002/07/07 18:35:10 matt Exp $    */
+/*     $NetBSD: ofb.c,v 1.30 2002/08/07 05:46:13 chs Exp $     */
 
 /*
  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -259,7 +259,8 @@
                     va += SEGMENT_LENGTH) {
                        if (battable[va >> ADDR_SR_SHFT].batu == 0) {
                                battable[va >> ADDR_SR_SHFT].batl =
-                                   BATL(addr & 0xf0000000, BAT_W, BAT_PP_RW);
+                                   BATL(addr & 0xf0000000, BAT_W | BAT_M,
+                                        BAT_PP_RW);
                                battable[va >> ADDR_SR_SHFT].batu =
                                    BATL(va, BAT_BL_256M, BAT_Vs);
                                addr &= 0x0fffffff;



Home | Main Index | Thread Index | Old Index