Module Name: src
Committed By: snj
Date: Sun Oct 4 00:33:58 UTC 2009
Modified Files:
src/sys/arch/atari/dev [netbsd-5]: fd.c
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1058):
sys/arch/atari/dev/fd.c: revision 1.71
Read AD_CFG_SWITCH via volatile pointer so that
the default density is detected correctly.
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.62.6.1 src/sys/arch/atari/dev/fd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/atari/dev/fd.c
diff -u src/sys/arch/atari/dev/fd.c:1.62 src/sys/arch/atari/dev/fd.c:1.62.6.1
--- src/sys/arch/atari/dev/fd.c:1.62 Wed Jun 11 14:35:53 2008
+++ src/sys/arch/atari/dev/fd.c Sun Oct 4 00:33:58 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: fd.c,v 1.62 2008/06/11 14:35:53 tsutsui Exp $ */
+/* $NetBSD: fd.c,v 1.62.6.1 2009/10/04 00:33:58 snj Exp $ */
/*
* Copyright (c) 1995 Leo Weppelman.
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.62 2008/06/11 14:35:53 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.62.6.1 2009/10/04 00:33:58 snj Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -253,7 +253,7 @@
static u_short rd_cfg_switch __P((void));
static u_short rd_cfg_switch(void)
{
- return(*((u_short*)AD_CFG_SWITCH));
+ return(*((volatile u_short *)AD_CFG_SWITCH));
}
/*