[PATCH] klibc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This change enabled me to boot on OpenPower 710. Otherwise klibc's statfs is 
built for 32 bit and not for 64 bit. The failure was in kinit when
calling run_init. run_init would attempt to validate ramfs and
failed calling statfs of "/".


Signed-off-by: Bob Picco <[email protected]>

 usr/include/sys/vfs.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux-2.6.17-rc5-mm2/usr/include/sys/vfs.h
===================================================================
--- linux-2.6.17-rc5-mm2.orig/usr/include/sys/vfs.h	2006-06-01 14:51:11.000000000 -0400
+++ linux-2.6.17-rc5-mm2/usr/include/sys/vfs.h	2006-06-01 14:52:20.000000000 -0400
@@ -13,7 +13,8 @@
 /* struct statfs64 -- there seems to be two standards -
    one for 32 and one for 64 bits, and they're incompatible... */
 
-#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc_v9__)
+#if !defined(__x86_64__) && !defined(__ia64__) && !defined(__sparc_v9__) && \
+	!defined(__powerpc64__)
 
 struct statfs {
 	uint32_t f_type;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux