[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2 7/7] x86/boot: fold two MOVs into an ADD


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 15 Sep 2021 15:26:48 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KNU533Nas71KGaxkrjt8Y4qhfH0SyWRPA/lY3YgjMd0=; b=VXKsUlbkagqgre7uehe3Q/anitst+U/HBD0UfQ4TQLj3h1YUYeVCzCUvbHsjsCm0cMtJ/1PuFMObcka++nmec9XVvFw/ORLleZdDIE1kNTD/vja6gu1zz8qY++st5q1AIpwlKkyfyjn/w2LYZyEm/+/ypYHut8FqyR2yvxQEw5A28fDPD+rbJf0HEyKartI7PqoWjuxSfHqISAch95u/3knU2snw//+byS0RQA3bw5YEhOIacylkkGrYD8mv0Yu65GDtBDhu913lkORih5Hu/kP1yeN96Mhz+LN2UzNTE+TYXmm85J+Mw9u5tsHHEi7ZWgP1+DHoZwadZRfKq07O3Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dXJe1CvuUrpYq6H9KGPvpt7ar1/bkWERk3uEVIjMxjBmHUVj6nvvzFtntGfT0Tp1PPvEcn0cmPgK6jSgt0JlB5el1Sf/OuCgxgudJrwSqjLJ23w7XM3dYwEuYQY9F8eFEyHVbmfs/1GDLX5VoRkMjfgnh37hyYcYanI9Z3BbZ3XPFliXjEylSY3CQdFmj1fB27yUNsHRqZbt208AXrc54mz//s5HipHUAbxsGlO+/z819P1w2Bj1HUkPpDCZ/vaFdaT93ZRq0WhFpYL9Rux+cUeZBtkSSOsuklB1TdoFVW5ztTQILQyWNMyiFr6ToIizA8r738qfyvD8VRO/184fhw==
  • Authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Wed, 15 Sep 2021 13:26:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
---
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
 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.