mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86/boot: save several bytes in decompressor
@ 2019-01-23 10:00 Cao jin
  2019-01-23 10:05 ` Kirill A. Shutemov
  2019-01-29 21:13 ` [tip:x86/cleanups] x86/boot: Save " tip-bot for Cao jin
  0 siblings, 2 replies; 3+ messages in thread
From: Cao jin @ 2019-01-23 10:00 UTC (permalink / raw)
  To: linux-kernel, x86; +Cc: tglx, mingo, bp, hpa, kirill.shutemov

gdt64 represents the content of GDTR under x86-64, which actually needs
10 bytes only, ".long" & ".word" is superfluous.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
---
 arch/x86/boot/compressed/head_64.S | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
index 58f6a467f1fa..541358454f10 100644
--- a/arch/x86/boot/compressed/head_64.S
+++ b/arch/x86/boot/compressed/head_64.S
@@ -642,8 +642,6 @@ no_longmode:
 	.data
 gdt64:
 	.word	gdt_end - gdt
-	.long	0
-	.word	0
 	.quad   0
 gdt:
 	.word	gdt_end - gdt
-- 
2.17.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/boot: save several bytes in decompressor
  2019-01-23 10:00 [PATCH] x86/boot: save several bytes in decompressor Cao jin
@ 2019-01-23 10:05 ` Kirill A. Shutemov
  2019-01-29 21:13 ` [tip:x86/cleanups] x86/boot: Save " tip-bot for Cao jin
  1 sibling, 0 replies; 3+ messages in thread
From: Kirill A. Shutemov @ 2019-01-23 10:05 UTC (permalink / raw)
  To: Cao jin; +Cc: linux-kernel, x86, tglx, mingo, bp, hpa, kirill.shutemov

On Wed, Jan 23, 2019 at 06:00:14PM +0800, Cao jin wrote:
> gdt64 represents the content of GDTR under x86-64, which actually needs
> 10 bytes only, ".long" & ".word" is superfluous.
> 
> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>

Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>

-- 
 Kirill A. Shutemov

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [tip:x86/cleanups] x86/boot: Save several bytes in decompressor
  2019-01-23 10:00 [PATCH] x86/boot: save several bytes in decompressor Cao jin
  2019-01-23 10:05 ` Kirill A. Shutemov
@ 2019-01-29 21:13 ` tip-bot for Cao jin
  1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Cao jin @ 2019-01-29 21:13 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: caoj.fnst, linux-kernel, hpa, mingo, kirill.shutemov, tglx, bp

Commit-ID:  0a278662f53159354a0391a17741a20db736256a
Gitweb:     https://git.kernel.org/tip/0a278662f53159354a0391a17741a20db736256a
Author:     Cao jin <caoj.fnst@cn.fujitsu.com>
AuthorDate: Wed, 23 Jan 2019 18:00:14 +0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 29 Jan 2019 22:09:12 +0100

x86/boot: Save several bytes in decompressor

gdt64 represents the content of GDTR under x86-64, which actually needs
10 bytes only, ".long" & ".word" is superfluous.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: <bp@alien8.de>
Cc: <hpa@zytor.com>
Link: https://lkml.kernel.org/r/20190123100014.23721-1-caoj.fnst@cn.fujitsu.com

---
 arch/x86/boot/compressed/head_64.S | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
index 64037895b085..b27b338d2f6d 100644
--- a/arch/x86/boot/compressed/head_64.S
+++ b/arch/x86/boot/compressed/head_64.S
@@ -645,8 +645,6 @@ no_longmode:
 	.data
 gdt64:
 	.word	gdt_end - gdt
-	.long	0
-	.word	0
 	.quad   0
 gdt:
 	.word	gdt_end - gdt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-29 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-23 10:00 [PATCH] x86/boot: save several bytes in decompressor Cao jin
2019-01-23 10:05 ` Kirill A. Shutemov
2019-01-29 21:13 ` [tip:x86/cleanups] x86/boot: Save " tip-bot for Cao jin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®