patch-2.4.21 linux-2.4.21/include/asm-m68k/amigahw.h
Next file: linux-2.4.21/include/asm-m68k/apollohw.h
Previous file: linux-2.4.21/include/asm-ia64/unistd.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
2003-06-13 07:51:38.000000000 -0700
- Orig file:
linux-2.4.20/include/asm-m68k/amigahw.h
- Orig date:
2001-06-11 19:15:27.000000000 -0700
diff -urN linux-2.4.20/include/asm-m68k/amigahw.h linux-2.4.21/include/asm-m68k/amigahw.h
@@ -324,7 +324,7 @@
};
#define TOD3000_CNTRL1_HOLD 0
#define TOD3000_CNTRL1_FREE 9
-#define TOD_3000 ((struct tod3000 *)(zTwoBase+0xDC0000))
+#define tod_3000 ((*(volatile struct tod3000 *)(zTwoBase+0xDC0000)))
struct tod2000 {
unsigned int :28, second2:4; /* lower digit */
@@ -349,6 +349,6 @@
#define TOD2000_CNTRL1_BUSY (1<<1)
#define TOD2000_CNTRL3_24HMODE (1<<2)
#define TOD2000_HOUR1_PM (1<<2)
-#define TOD_2000 ((struct tod2000 *)(zTwoBase+0xDC0000))
+#define tod_2000 ((*(volatile struct tod2000 *)(zTwoBase+0xDC0000)))
#endif /* _M68K_AMIGAHW_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)