Re: [PATCH v2 1/7] x86/asm: Add _ASM_RIP() macro for x86-64 (%rip) suffix

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

 





On 12.03.24 г. 3:33 ч., Pawan Gupta wrote:
On Mon, Feb 26, 2024 at 02:22:31PM +0200, Nikolay Borisov wrote:
From: "H. Peter Anvin (Intel)" <hpa@xxxxxxxxx>

[ Upstream commit 0576d1ed1e153bf34b54097e0561ede382ba88b0 ]

Looks like the correct sha is f87bc8dc7a7c438c70f97b4e51c76a183313272e

Indeed, 0576d1ed1e153bf34b54097e0561ede382ba88b0 is my local shaid of the backported commit. Thanks for catching it!


Add a macro _ASM_RIP() to add a (%rip) suffix on 64 bits only. This is
useful for immediate memory references where one doesn't want gcc
to possibly use a register indirection as it may in the case of an "m"
constraint.

Signed-off-by: H. Peter Anvin (Intel) <hpa@xxxxxxxxx>
Signed-off-by: Borislav Petkov <bp@xxxxxxx>
Link: https://lkml.kernel.org/r/20210910195910.2542662-3-hpa@xxxxxxxxx
Signed-off-by: Nikolay Borisov <nik.borisov@xxxxxxxx>




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux