iPXE
Macros to provide ELF notes

Macros

#define IPXE_NOTE(type)
#define IPXE_NOTE_DISKLOG   0x18aed109
 Build will use a disk-based console log, if present.

Detailed Description

Macro Definition Documentation

◆ IPXE_NOTE

#define IPXE_NOTE ( type)
Value:
__asm__ ( ".section \".note.ipxe\", \"\", " \
_S2 ( ASM_TCHAR ) "note\n\t" \
/* Owner name length */ \
".long 4\n\t" \
/* Content length */ \
".long 0\n\t" \
/* Type */ \
".long " _S2 ( _C2 ( IPXE_NOTE_, type ) ) \
"\n\t" \
/* Owner name */ \
".ascii \"iPXE\"\n\t" \
".previous\n\t" )
uint32_t type
Operating system type.
Definition ena.h:1
#define _S2(x)
Stringify expanded argument.
Definition compiler.h:53
#define _C2(x, y)
Concatenate expanded arguments.
Definition compiler.h:48
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")

Definition at line 175 of file compiler.h.

175#define IPXE_NOTE( type ) \
176 __asm__ ( ".section \".note.ipxe\", \"\", " \
177 _S2 ( ASM_TCHAR ) "note\n\t" \
178 /* Owner name length */ \
179 ".long 4\n\t" \
180 /* Content length */ \
181 ".long 0\n\t" \
182 /* Type */ \
183 ".long " _S2 ( _C2 ( IPXE_NOTE_, type ) ) \
184 "\n\t" \
185 /* Owner name */ \
186 ".ascii \"iPXE\"\n\t" \
187 ".previous\n\t" )

◆ IPXE_NOTE_DISKLOG

#define IPXE_NOTE_DISKLOG   0x18aed109

Build will use a disk-based console log, if present.

Definition at line 190 of file compiler.h.