diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-07-10 14:17:28 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-07-10 14:17:28 +0100 |
commit | c5f917328e5eed39bc09a78019ab31ecb7823f30 (patch) | |
tree | 0bb514a38dccdf090bd8516d14a03b5878cec8d1 | |
parent | 8f969983389d428de381469944712e468f99e345 (diff) | |
download | xen-c5f917328e5eed39bc09a78019ab31ecb7823f30.tar.gz xen-c5f917328e5eed39bc09a78019ab31ecb7823f30.tar.bz2 xen-c5f917328e5eed39bc09a78019ab31ecb7823f30.zip |
PV-GRUB: xfs support
i386 doesn't have PAE anyway.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
-rw-r--r-- | stubdom/grub.patches/99minios | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/stubdom/grub.patches/99minios b/stubdom/grub.patches/99minios index f2c11fefe0..6c481b1774 100644 --- a/stubdom/grub.patches/99minios +++ b/stubdom/grub.patches/99minios @@ -1465,3 +1465,31 @@ Index: grub/stage2/stage2.c # endif /* SUPPORT_DISKLESS */ static int preset_menu_offset; +Index: grub/stage2/fsys_xfs.c +=================================================================== +RCS file: /sources/grub/grub/stage2/fsys_xfs.c,v +retrieving revision 1.5 +diff -u -p -r1.5 fsys_xfs.c +--- grub/stage2/fsys_xfs.c 8 May 2005 02:18:14 -0000 1.5 ++++ grub/stage2/fsys_xfs.c 10 Jul 2008 13:09:50 -0000 +@@ -101,7 +101,7 @@ static inline __const__ xfs_uint16_t + le16 (xfs_uint16_t x) + { + __asm__("xchgb %b0,%h0" \ +- : "=q" (x) \ ++ : "=Q" (x) \ + : "0" (x)); \ + return x; + } +@@ -109,9 +109,9 @@ le16 (xfs_uint16_t x) + static inline __const__ xfs_uint32_t + le32 (xfs_uint32_t x) + { +-#if 0 ++#if 1 + /* 386 doesn't have bswap. */ +- __asm__("bswap %0" : "=r" (x) : "0" (x)); ++ __asm__("bswapl %k0" : "=r" (x) : "0" (x)); + #else + /* This is slower but this works on all x86 architectures. */ + __asm__("xchgb %b0, %h0" \ |