L4Re Operating System Framework
Interface and Usage Documentation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
elf_aux.h
Go to the documentation of this file.
1
5/*
6 * (c) 2009 Alexander Warg <warg@os.inf.tu-dresden.de>
7 * economic rights: Technische Universität Dresden (Germany)
8 *
9 * License: see LICENSE.spdx (in this directory or the directories above)
10 */
11#pragma once
12
13#include <l4/sys/types.h>
14
15
41#define L4RE_ELF_AUX_ELEM const __attribute__((used, section(".rol4re_elf_aux"), aligned(sizeof(l4_umword_t))))
42
56#define L4RE_ELF_AUX_ELEM_T(type, id, tag, val...) \
57 static L4RE_ELF_AUX_ELEM type id = {tag, sizeof(type), val}
58
59enum
60{
65
70
76
82
88
93};
94
98typedef struct l4re_elf_aux_t
99{
100 l4_umword_t type;
101 l4_umword_t length;
103
107typedef struct l4re_elf_aux_vma_t
108{
109 l4_umword_t type;
110 l4_umword_t length;
111 l4_umword_t start;
112 l4_umword_t end;
114
119{
120 l4_umword_t type;
121 l4_umword_t length;
122 l4_umword_t value;
124
@ L4RE_ELF_AUX_T_EX_REGS_FLAGS
Tag for descriptor to override ex_regs() flags.
Definition elf_aux.h:92
@ L4RE_ELF_AUX_T_STACK_ADDR
Tag for descriptor that defines the stack address for the first application thread.
Definition elf_aux.h:81
@ L4RE_ELF_AUX_T_KIP_ADDR
Tag for descriptor that defines the KIP address for the binaries address space.
Definition elf_aux.h:87
@ L4RE_ELF_AUX_T_STACK_SIZE
Tag for descriptor that defines the stack size for the first application thread.
Definition elf_aux.h:75
@ L4RE_ELF_AUX_T_NONE
Tag for an invalid element in the auxiliary vector.
Definition elf_aux.h:64
@ L4RE_ELF_AUX_T_VMA
Tag for descriptor for a reserved virtual memory area.
Definition elf_aux.h:69
unsigned long l4_umword_t
Unsigned machine word.
Definition l4int.h:40
Common L4 ABI Data Types.
Auxiliary vector element for a single unsigned data word.
Definition elf_aux.h:119
Generic header for each auxiliary vector element.
Definition elf_aux.h:99
Auxiliary vector element for a reserved virtual memory area.
Definition elf_aux.h:108