Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/next68k/dev Add proper rnd_add_uint32(9) calls to n...



details:   https://anonhg.NetBSD.org/src/rev/0b3d01a58739
branches:  trunk
changeset: 373340:0b3d01a58739
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Feb 03 23:00:33 2023 +0000

description:
Add proper rnd_add_uint32(9) calls to next68k xe(4) driver.

diffstat:

 sys/arch/next68k/dev/mb8795.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 0967e75a0687 -r 0b3d01a58739 sys/arch/next68k/dev/mb8795.c
--- a/sys/arch/next68k/dev/mb8795.c     Fri Feb 03 22:57:05 2023 +0000
+++ b/sys/arch/next68k/dev/mb8795.c     Fri Feb 03 23:00:33 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mb8795.c,v 1.69 2022/09/18 13:00:18 thorpej Exp $      */
+/*     $NetBSD: mb8795.c,v 1.70 2023/02/03 23:00:33 tsutsui Exp $      */
 /*
  * Copyright (c) 1998 Darrin B. Jewell
  * All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mb8795.c,v 1.69 2022/09/18 13:00:18 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mb8795.c,v 1.70 2023/02/03 23:00:33 tsutsui Exp $");
 
 #include "opt_inet.h"
 
@@ -348,6 +348,7 @@
                printf("rxmode = %s\n", sbuf);
        }
 #endif
+       rnd_add_uint32(&sc->rnd_source, rxstat);
 
        return;
 }
@@ -380,7 +381,7 @@
                        /* printf ("Z"); */
                        mb8795_start_dma(sc);
                }
-               return;
+               goto out;
        }
 
        if (txstat & MB8795_TXSTAT_SHORTED) {
@@ -414,6 +415,8 @@
                    txmask & ~MB8795_TXMASK_READYIE);
        }
 #endif
+ out:
+       rnd_add_uint32(&sc->rnd_source, txstat);
 
        return;
 }



Home | Main Index | Thread Index | Old Index