mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-01 22:25:20 +02:00
b3c2645b97
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18512 3c298f89-4303-0410-b956-a3cf2f4a3e73
25 lines
509 B
Diff
25 lines
509 B
Diff
diff -uNr compcache-0.5.2/compcache.c compcache/compcache.c
|
|
--- compcache-0.5.2/compcache.c 2009-03-10 13:03:56.000000000 +0100
|
|
+++ compcache/ramzswap.c 2009-04-01 17:38:20.000000000 +0200
|
|
@@ -68,15 +68,15 @@
|
|
static int page_zero_filled(void *ptr)
|
|
{
|
|
u32 pos;
|
|
- u64 *page;
|
|
-
|
|
- page = (u64 *)ptr;
|
|
-
|
|
+#if defined(CONFIG_64BIT)
|
|
+ u64 *page = (u64 *)ptr;
|
|
+#else
|
|
+ u32 *page = (u32 *)ptr;
|
|
+#endif
|
|
for (pos = 0; pos != PAGE_SIZE / sizeof(*page); pos++) {
|
|
if (page[pos])
|
|
return 0;
|
|
}
|
|
-
|
|
return 1;
|
|
}
|
|
|