ia64/xen-unstable

changeset 18021:40b2048bd809

PV-GRUB: xfs support

i386 doesn't have PAE anyway.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jul 10 14:17:28 2008 +0100 (2008-07-10)
parents 707e10c9a487
children 26714991f242
files stubdom/grub.patches/99minios
line diff
     1.1 --- a/stubdom/grub.patches/99minios	Thu Jul 10 14:15:46 2008 +0100
     1.2 +++ b/stubdom/grub.patches/99minios	Thu Jul 10 14:17:28 2008 +0100
     1.3 @@ -1465,3 +1465,31 @@ Index: grub/stage2/stage2.c
     1.4   # endif /* SUPPORT_DISKLESS */
     1.5   
     1.6   static int preset_menu_offset;
     1.7 +Index: grub/stage2/fsys_xfs.c
     1.8 +===================================================================
     1.9 +RCS file: /sources/grub/grub/stage2/fsys_xfs.c,v
    1.10 +retrieving revision 1.5
    1.11 +diff -u -p -r1.5 fsys_xfs.c
    1.12 +--- grub/stage2/fsys_xfs.c	8 May 2005 02:18:14 -0000	1.5
    1.13 ++++ grub/stage2/fsys_xfs.c	10 Jul 2008 13:09:50 -0000
    1.14 +@@ -101,7 +101,7 @@ static inline __const__ xfs_uint16_t
    1.15 + le16 (xfs_uint16_t x)
    1.16 + {
    1.17 + 	__asm__("xchgb %b0,%h0"	\
    1.18 +-		: "=q" (x) \
    1.19 ++		: "=Q" (x) \
    1.20 + 		:  "0" (x)); \
    1.21 + 		return x;
    1.22 + }
    1.23 +@@ -109,9 +109,9 @@ le16 (xfs_uint16_t x)
    1.24 + static inline __const__ xfs_uint32_t
    1.25 + le32 (xfs_uint32_t x)
    1.26 + {
    1.27 +-#if 0
    1.28 ++#if 1
    1.29 +         /* 386 doesn't have bswap.  */
    1.30 +-	__asm__("bswap %0" : "=r" (x) : "0" (x));
    1.31 ++	__asm__("bswapl %k0" : "=r" (x) : "0" (x));
    1.32 + #else
    1.33 + 	/* This is slower but this works on all x86 architectures.  */
    1.34 + 	__asm__("xchgb %b0, %h0" \