<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/tools/arch/x86/include/asm/asm.h, branch v6.3</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.3</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.3'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2021-05-14T06:50:28+00:00</updated>
<entry>
<title>x86/asm: Make &lt;asm/asm.h&gt; valid on cross-builds as well</title>
<updated>2021-05-14T06:50:28+00:00</updated>
<author>
<name>Ingo Molnar</name>
<email>mingo@kernel.org</email>
</author>
<published>2021-05-13T11:41:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=41f45fb045bcc20e71eb705b361356e715682162'/>
<id>urn:sha1:41f45fb045bcc20e71eb705b361356e715682162</id>
<content type='text'>
Stephen Rothwell reported that the objtool cross-build breaks on
non-x86 hosts:

  &gt; tools/arch/x86/include/asm/asm.h:185:24: error: invalid register name for 'current_stack_pointer'
  &gt;   185 | register unsigned long current_stack_pointer asm(_ASM_SP);
  &gt;       |                        ^~~~~~~~~~~~~~~~~~~~~

The PowerPC host obviously doesn't know much about x86 register names.

Protect the kernel-specific bits of &lt;asm/asm.h&gt;, so that it can be
included by tooling and cross-built.

Reported-by: Stephen Rothwell &lt;sfr@canb.auug.org.au&gt;
Reviewed-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
</content>
</entry>
<entry>
<title>x86/asm: Use _ASM_BYTES() in &lt;asm/nops.h&gt;</title>
<updated>2021-05-10T10:33:28+00:00</updated>
<author>
<name>H. Peter Anvin (Intel)</name>
<email>hpa@zytor.com</email>
</author>
<published>2021-05-10T09:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=eef23e72b78b36924aea8be5ec7c54e628c442ef'/>
<id>urn:sha1:eef23e72b78b36924aea8be5ec7c54e628c442ef</id>
<content type='text'>
Use the new generalized _ASM_BYTES() macro from &lt;asm/asm.h&gt; instead of
the "home grown" _ASM_MK_NOP() in &lt;asm/nops.h&gt;.

Add &lt;asm/asm.h&gt; and update &lt;asm/nops.h&gt; in the tools directory...

Signed-off-by: H. Peter Anvin (Intel) &lt;hpa@zytor.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@kernel.org&gt;
Link: https://lore.kernel.org/r/20210510090940.924953-4-hpa@zytor.com
</content>
</entry>
</feed>
