]> asedeno.scripts.mit.edu Git - linux.git/commit
powerpc: Add PowerPC Capabilities ELF note
authorClaudio Carvalho <cclaudio@linux.ibm.com>
Thu, 29 Aug 2019 15:50:20 +0000 (12:50 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 29 Aug 2019 23:40:15 +0000 (09:40 +1000)
commit70ed86f4de5bd74dd2d884dcd2f3275c4cfe665f
tree65d5e98e0364848fb3fa3006dffb57ca0d0bdfc4
parenta102f139aac54689eeb05883952742ae780159f3
powerpc: Add PowerPC Capabilities ELF note

Add the PowerPC name and the PPC_ELFNOTE_CAPABILITIES type in the
kernel binary ELF note. This type is a bitmap that can be used to
advertise kernel capabilities to userland.

This patch also defines PPCCAP_ULTRAVISOR_BIT as being the bit zero.

Suggested-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Claudio Carvalho <cclaudio@linux.ibm.com>
[ maxiwell: Define the 'PowerPC' type in the elfnote.h ]
Signed-off-by: Maxiwell S. Garcia <maxiwell@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190829155021.2915-2-maxiwell@linux.ibm.com
arch/powerpc/include/asm/elfnote.h [new file with mode: 0644]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/note.S [new file with mode: 0644]