All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] PV-GRUB: xfs support
Date: Thu, 10 Jul 2008 14:13:31 +0100	[thread overview]
Message-ID: <20080710131331.GU4536@implementation.uk.xensource.com> (raw)

PV-GRUB: xfs support

i386 doesn't have PAE anyway.

Index: 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
--- fsys_xfs.c	8 May 2005 02:18:14 -0000	1.5
+++ 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" \

             reply	other threads:[~2008-07-10 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 13:13 Samuel Thibault [this message]
2008-07-10 13:15 ` [PATCH] PV-GRUB: xfs support Samuel Thibault
2008-07-10 13:18   ` Samuel Thibault

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080710131331.GU4536@implementation.uk.xensource.com \
    --to=samuel.thibault@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.