rpms/grub/devel grub-0.97-xfs-buildfix.patch,NONE,1.1

Peter Jones pjones at fedoraproject.org
Mon Mar 2 20:48:23 UTC 2009


Author: pjones

Update of /cvs/extras/rpms/grub/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3487

Added Files:
	grub-0.97-xfs-buildfix.patch 
Log Message:
* Mon Mar 02 2009 Peter Jones <pjones at redhat.com> - 0.97-41
- Fix CD Booting on EFI.
- Fix XFS build on x86_64.


grub-0.97-xfs-buildfix.patch:

--- NEW FILE grub-0.97-xfs-buildfix.patch ---
diff --git a/stage2/fsys_xfs.c b/stage2/fsys_xfs.c
index 1c01c3b..eee7576 100644
--- a/stage2/fsys_xfs.c
+++ b/stage2/fsys_xfs.c
@@ -100,10 +100,14 @@ ino2offset (xfs_ino_t ino)
 static inline xfs_uint16_t __attribute__((__const__))
 le16 (xfs_uint16_t x) 
 {
+#if 1
+	return ((x & 0xff00) >> 8) | ((x & 0xff) << 8);
+#else
 	__asm__("xchgb %b0,%h0"	\
 		: "=q" (x) \
 		:  "0" (x)); \
 		return x;
+#endif
 }
 
 static inline xfs_uint32_t __attribute__((__const__))




More information about the fedora-extras-commits mailing list