mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 13:52:50 +01:00
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 <[email protected]> Signed-off-by: Claudio Carvalho <[email protected]> [ maxiwell: Define the 'PowerPC' type in the elfnote.h ] Signed-off-by: Maxiwell S. Garcia <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
25 lines
527 B
C
25 lines
527 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* PowerPC ELF notes.
|
|
*
|
|
* Copyright 2019, IBM Corporation
|
|
*/
|
|
|
|
#ifndef __ASM_POWERPC_ELFNOTE_H__
|
|
#define __ASM_POWERPC_ELFNOTE_H__
|
|
|
|
/*
|
|
* These note types should live in a SHT_NOTE segment and have
|
|
* "PowerPC" in the name field.
|
|
*/
|
|
|
|
/*
|
|
* The capabilities supported/required by this kernel (bitmap).
|
|
*
|
|
* This type uses a bitmap as "desc" field. Each bit is described
|
|
* in arch/powerpc/kernel/note.S
|
|
*/
|
|
#define PPC_ELFNOTE_CAPABILITIES 1
|
|
|
|
#endif /* __ASM_POWERPC_ELFNOTE_H__ */
|