mtd/include/linux/mtd xip.h,1.1,1.2

Nicolas Pitre nico at infradead.org
Wed Dec 1 10:49:13 EST 2004


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv20096/include/linux/mtd

Modified Files:
	xip.h 
Log Message:
allows MTD XIP to compile on every target with a fallback to reduced
responsiveness, and warn about it.


Index: xip.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/xip.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xip.h	5 Nov 2004 22:41:06 -0000	1.1
+++ xip.h	1 Dec 2004 15:49:10 -0000	1.2
@@ -74,7 +74,15 @@
 #define xip_elapsed_since(x)	(signed)((OSCR - (x)) / 4)
 
 #else
-#error "missing IRQ and timer primitives for XIP MTD support"
+
+#warning "missing IRQ and timer primitives for XIP MTD support"
+#warning "some of the XIP MTD support code will be disabled"
+#warning "your system will therefore be unresponsive when writing or erasing flash"
+
+#define xip_irqpending()	(0)
+#define xip_currtime()		(0)
+#define xip_elapsed_since(x)	(0)
+
 #endif
 
 /*





More information about the linux-mtd-cvs mailing list