Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/dev initialize the diagnostic register with t...



details:   https://anonhg.NetBSD.org/src/rev/6c7006f3cc2e
branches:  trunk
changeset: 374250:6c7006f3cc2e
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Apr 13 13:07:48 2023 +0000

description:
initialize the diagnostic register with the value suggested by the SunOS
header. This sets a bunch of undocumented bits and yields a 10% speed increase
when rendering antialiased text.

diffstat:

 sys/arch/sparc/dev/sx.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7a19edfd144f -r 6c7006f3cc2e sys/arch/sparc/dev/sx.c
--- a/sys/arch/sparc/dev/sx.c   Thu Apr 13 11:44:10 2023 +0000
+++ b/sys/arch/sparc/dev/sx.c   Thu Apr 13 13:07:48 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sx.c,v 1.5 2021/09/11 20:28:05 andvar Exp $    */
+/*     $NetBSD: sx.c,v 1.6 2023/04/13 13:07:48 macallan Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sx.c,v 1.5 2021/09/11 20:28:05 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sx.c,v 1.6 2023/04/13 13:07:48 macallan Exp $");
 
 #include "locators.h"
 
@@ -104,7 +104,7 @@ sx_attach(device_t parent, device_t self
        sx_write(sc, SX_PAGE_BOUND_LOWER, 0xfc000000);
        /* cg14 takes up the whole 64MB chunk */
        sx_write(sc, SX_PAGE_BOUND_UPPER, 0xffffffff);
-       sx_write(sc, SX_DIAGNOSTICS, 0);
+       sx_write(sc, SX_DIAGNOSTICS, SX_DIAG_INIT);
        sx_write(sc, SX_PLANEMASK, 0xffffffff);
 
        /*



Home | Main Index | Thread Index | Old Index