Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic actually stop using the stack variable



details:   https://anonhg.NetBSD.org/src/rev/6abebc788130
branches:  trunk
changeset: 935107:6abebc788130
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Jun 24 20:17:55 2020 +0000

description:
actually stop using the stack variable

diffstat:

 sys/dev/ic/ibm561.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4ebc0a5bcb06 -r 6abebc788130 sys/dev/ic/ibm561.c
--- a/sys/dev/ic/ibm561.c       Wed Jun 24 19:55:25 2020 +0000
+++ b/sys/dev/ic/ibm561.c       Wed Jun 24 20:17:55 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ibm561.c,v 1.12 2020/06/24 19:55:25 jdolecek Exp $ */
+/* $NetBSD: ibm561.c,v 1.13 2020/06/24 20:17:55 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibm561.c,v 1.12 2020/06/24 19:55:25 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibm561.c,v 1.13 2020/06/24 20:17:55 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -165,7 +165,7 @@
        u_int8_t (*rd)(void *, u_int),
        u_int dotclock)
 {
-       struct ibm561data tmp, *data = &tmp;
+       struct ibm561data *data = &saved_console_data;
        memset(data, 0x0, sizeof *data);
        data->cookie = v;
        data->ramdac_sched_update = sched_update;



Home | Main Index | Thread Index | Old Index