All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Cc: "Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Wei Liu" <wl@xen.org>, "Roger Pau Monné" <roger.pau@citrix.com>
Subject: [PATCH v3 7/7] x86/boot: fold two MOVs into an ADD
Date: Mon, 6 Dec 2021 15:20:28 +0100	[thread overview]
Message-ID: <905a1d43-9f35-21b4-fdec-97c592f59afc@suse.com> (raw)
In-Reply-To: <4af7ce92-8f4b-0be2-2439-a1bfaff59be6@suse.com>

There's no point going through %ax; the addition can be done directly in
%di.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
---
v2: New.

--- a/xen/arch/x86/boot/mem.S
+++ b/xen/arch/x86/boot/mem.S
@@ -24,9 +24,7 @@ get_memory_map:
         cmpw    $E820_BIOS_MAX, bootsym(bios_e820nr) # up to this many entries
         jae     .Ldone
 
-        movw    %di,%ax
-        addw    $20,%ax
-        movw    %ax,%di
+        addw    $20,%di
         testl   %ebx,%ebx                       # check to see if
         jnz     1b                              # %ebx is set to EOF
 



      parent reply	other threads:[~2021-12-06 14:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-06 14:15 [PATCH v3 0/7] x86/boot: (mostly) video mode handling adjustments Jan Beulich
2021-12-06 14:16 ` [PATCH v3 1/7] x86/boot: make "vga=current" work with graphics modes Jan Beulich
2021-12-06 14:17 ` [PATCH v3 2/7] x86/boot: obtain video info from boot loader Jan Beulich
2021-12-06 14:18 ` [PATCH v3 3/7] x86/EFI: retrieve EDID Jan Beulich
2021-12-06 14:19 ` [PATCH v3 4/7] x86/boot: simplify mode_table Jan Beulich
2021-12-06 14:19 ` [PATCH v3 5/7] x86/boot: fold branches in video handling code Jan Beulich
2021-12-06 14:20 ` [PATCH v3 6/7] x86/boot: fold/replace moves " Jan Beulich
2021-12-06 14:20 ` Jan Beulich [this message]

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=905a1d43-9f35-21b4-fdec-97c592f59afc@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=roger.pau@citrix.com \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /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.