diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-09-22 19:44:38 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-09-22 19:44:38 +0000 |
commit | e23866e752e526a738f9e558128f964890058b4e (patch) | |
tree | 1dc3d3caf6ac133237fa25db68cf4af74f205b63 /sys/dev | |
parent | dc20ef49c3e4006723e473181cb672bff016b56f (diff) |
supply some entropy from here
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/bktr/bktr_core.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/dev/pci/bktr/bktr_core.c b/sys/dev/pci/bktr/bktr_core.c index 16f56150d44..473149eae63 100644 --- a/sys/dev/pci/bktr/bktr_core.c +++ b/sys/dev/pci/bktr/bktr_core.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bktr_core.c,v 1.1 2001/03/28 03:27:09 fgsch Exp $ */ +/* $OpenBSD: bktr_core.c,v 1.2 2001/09/22 19:44:37 mickey Exp $ */ /* $FreeBSD: src/sys/dev/bktr/bktr_core.c,v 1.114 2000/10/31 13:09:56 roger Exp $ */ /* @@ -199,6 +199,8 @@ typedef unsigned int uintptr_t; #else #include <vm/vm.h> /* for vtophys */ #include <vm/pmap.h> /* for vtophys */ + +#include <dev/rndvar.h> #endif #ifdef __OpenBSD__ @@ -761,6 +763,10 @@ common_bktr_intr( void *arg ) BT848_INT_FMTCHG); OUTB(bktr, BKTR_CAP_CTL, bktr->bktr_cap_ctl); + +#ifdef __OpenBSD__ + add_video_randomness(tdec_save); +#endif return 1; } @@ -773,6 +779,9 @@ common_bktr_intr( void *arg ) bktr_status, dstatus, INL(bktr, BKTR_RISC_COUNT) ); */ +#ifdef __OpenBSD__ + add_video_randomness(INL(bktr, BKTR_RISC_COUNT)); +#endif /* * Disable future interrupts if a capture mode is not selected. |