Module Name:    src
Committed By:   tsutsui
Date:           Fri Jul 31 15:55:11 UTC 2009

Modified Files:
        src/sys/arch/atari/dev: fd.c

Log Message:
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.70 -r1.71 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.70 src/sys/arch/atari/dev/fd.c:1.71
--- src/sys/arch/atari/dev/fd.c:1.70	Sun Jul 19 05:43:22 2009
+++ src/sys/arch/atari/dev/fd.c	Fri Jul 31 15:55:10 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: fd.c,v 1.70 2009/07/19 05:43:22 tsutsui Exp $	*/
+/*	$NetBSD: fd.c,v 1.71 2009/07/31 15:55:10 tsutsui Exp $	*/
 
 /*
  * Copyright (c) 1995 Leo Weppelman.
@@ -49,7 +49,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.70 2009/07/19 05:43:22 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.71 2009/07/31 15:55:10 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -253,7 +253,7 @@
 static u_short rd_cfg_switch(void);
 static u_short rd_cfg_switch(void)
 {
-	return(*((u_short*)AD_CFG_SWITCH));
+	return(*((volatile u_short *)AD_CFG_SWITCH));
 }
 
 /*

Reply via email to