1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * PowerPC ELF notes. 4 * 5 * Copyright 2019, IBM Corporation 6 */ 7 8 #include <linux/elfnote.h> 9 #include <asm/elfnote.h> 10 11 /* 12 * Ultravisor-capable bit (PowerNV only). 13 * 14 * Bit 0 indicates that the powerpc kernel bin 15 * ultravisor-enabled system. 16 * 17 * In an ultravisor-enabled system, some machi 18 * by the ultravisor. If the kernel is not ult 19 * being run on a machine with ultravisor, the 20 * trying to access ultravisor resources. For 21 * boot trying to set the partition table entr 22 * 23 * In an ultravisor-enabled system, a bootload 24 * the kernel from being run if the PowerPC ul 25 * or the Ultravisor-capable bit is not set. 26 */ 27 #ifdef CONFIG_PPC_POWERNV 28 #define PPCCAP_ULTRAVISOR_BIT (1 << 29 #else 30 #define PPCCAP_ULTRAVISOR_BIT 0 31 #endif 32 33 /* 34 * Add the PowerPC Capabilities in the binary 35 * can be used to advertise kernel capabilitie 36 */ 37 #define PPC_CAPABILITIES_BITMAP (PPCCAP_ULTRAV 38 39 ELFNOTE(PowerPC, PPC_ELFNOTE_CAPABILITIES, 40 .long PPC_CAPABILITIES_BITMAP)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.