Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Fix "Alignment Fault 3" kernel failure of Net...



details:   https://anonhg.NetBSD.org/src/rev/13dc8121465a
branches:  trunk
changeset: 460741:13dc8121465a
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Nov 02 01:14:57 2019 +0000

description:
Fix "Alignment Fault 3" kernel failure of NetBSD/zaurus 8.1 GENERIC.

#ifdef switch per kernel config options in definition of device driver
structure in header files could be problematic.

See my post in port-zaurus@ for details:
 https://mail-index.netbsd.org/port-zaurus/2019/10/31/msg000079.html

Should be pulled up to netbsd-8 and netbsd-9.

diffstat:

 sys/dev/rasops/rasops.h |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 9f6f107fad08 -r 13dc8121465a sys/dev/rasops/rasops.h
--- a/sys/dev/rasops/rasops.h   Fri Nov 01 20:55:55 2019 +0000
+++ b/sys/dev/rasops/rasops.h   Sat Nov 02 01:14:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops.h,v 1.48 2019/08/14 00:51:10 rin Exp $ */
+/*     $NetBSD: rasops.h,v 1.49 2019/11/02 01:14:57 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -149,10 +149,8 @@
        /* Callbacks so we can share some code */
        void    (*ri_do_cursor)(struct rasops_info *);
 
-#if NRASOPS_ROTATION > 0
        /* Used to intercept putchar to permit display rotation */
        struct  wsdisplay_emulops ri_real_ops;
-#endif
 };
 
 #define CHAR_IN_FONT(c, font)                                          \



Home | Main Index | Thread Index | Old Index