From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NO_DNS_FOR_FROM,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from linux.gnuweeb.org (linux.gnuweeb.org [172.17.0.3]) by gnuweeb.org (Postfix) with ESMTPSA id B86B5806D7; Thu, 4 Aug 2022 15:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1659626819; bh=HYO9pbZDfPK8O2lWn2CBuaUHv0WEHOMviXfeXDRJLKA=; h=From:To:Cc:Subject:Date:From; b=TJeNRHNQL1XWDPG+R6s0LyhOh8/N1EkpcS4OrbbFlgRKczMVApE5eFDNz8p98FfRg HtmXQLrfhDrejMveOWwuLH6EgLSVByl9Lp30U6XB4qpqX7XmBDICi++2hM/eHVgmX8 J0wORvL63SXGi6Yp+ry/y7jpGJykibSmETuNRn9AOjrPTz4DQvZp5gncMHEgC+w4bj MuPC5XCIdxAR55+3ayJXnNyCuSAEZ5FwKYy8J2ueqwuxI0Aui2fRnTWRcgXWH4tRZr aJQsRYWOwXhUYr9ueN/bwTvVE/61ZO7dT/sClFjpt0NuZ54nTrtSxkawG94MgKKl0n s7tG85INNuygA== From: Kanna Scarlet To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , x86@kernel.org Cc: Kanna Scarlet , Ard Biesheuvel , Bill Metzenthen , Brijesh Singh , Joerg Roedel , Josh Poimboeuf , "Kirill A. Shutemov" , Mark Rutland , Michael Roth , Peter Zijlstra , Sean Christopherson , Steven Rostedt , Ammar Faizi , GNU/Weeb Mailing List , Linux Kernel Mailing List Subject: [PATCH 0/1] x86 change mov 0, %reg to xor %reg, %reg Date: Thu, 4 Aug 2022 15:26:54 +0000 Message-Id: <20220804152656.8840-1-knscarlet@gnuweeb.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Hello Linux x86 maintainers, I'm an informatic student 19 y.o. I am still studying Linux kernel open source in GNU/Weeb community. I want to be a linux kerne dev in the future. This is my first time sending a patch to Linux Kernel, I am still learning the community. I may make a mistake in this email, please correct me if i am wrong I want to improve x86-64 assembly code with this patch. This patch changes mov $0, %reg with xor %reg, %reg because xor %reg, %reg is smaller so it is good to save space asm: ba 00 00 00 00 mov $0x0,%edx 31 d2 xor %edx,%edx Regards, Signed-off-by: Kanna Scarlet --- Kanna Scarlet (1): x86: Change mov $0, %reg with xor %reg, %reg arch/x86/boot/compressed/head_64.S | 2 +- arch/x86/boot/compressed/mem_encrypt.S | 2 +- arch/x86/kernel/ftrace_32.S | 4 ++-- arch/x86/kernel/head_64.S | 2 +- arch/x86/math-emu/div_Xsig.S | 2 +- arch/x86/math-emu/reg_u_sub.S | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) base-commit: ff89dd08c0f0a3fd330c9ef9d775e880f82c291e -- Kanna Scarlet