paul@364 | 1 | /* |
paul@364 | 2 | * Common structures and functions. |
paul@364 | 3 | * |
paul@364 | 4 | * Copyright (C) 2022 Paul Boddie <paul@boddie.org.uk> |
paul@364 | 5 | * |
paul@364 | 6 | * This program is free software; you can redistribute it and/or |
paul@364 | 7 | * modify it under the terms of the GNU General Public License as |
paul@364 | 8 | * published by the Free Software Foundation; either version 2 of |
paul@364 | 9 | * the License, or (at your option) any later version. |
paul@364 | 10 | * |
paul@364 | 11 | * This program is distributed in the hope that it will be useful, |
paul@364 | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
paul@364 | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
paul@364 | 14 | * GNU General Public License for more details. |
paul@364 | 15 | * |
paul@364 | 16 | * You should have received a copy of the GNU General Public License |
paul@364 | 17 | * along with this program; if not, write to the Free Software |
paul@364 | 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, |
paul@364 | 19 | * Boston, MA 02110-1301, USA |
paul@364 | 20 | */ |
paul@364 | 21 | |
paul@364 | 22 | #pragma once |
paul@364 | 23 | |
paul@364 | 24 | #include <l4/re/l4aux.h> |
paul@364 | 25 | |
paul@364 | 26 | #include <systypes/base.h> |
paul@364 | 27 | |
paul@364 | 28 | |
paul@364 | 29 | |
paul@364 | 30 | EXTERN_C_BEGIN |
paul@364 | 31 | |
paul@364 | 32 | /* Auxiliary vector key-value pair. */ |
paul@364 | 33 | |
paul@364 | 34 | struct auxv_entry |
paul@364 | 35 | { |
paul@364 | 36 | l4_umword_t key, value; |
paul@364 | 37 | }; |
paul@364 | 38 | |
paul@364 | 39 | /* Region description. */ |
paul@364 | 40 | |
paul@364 | 41 | struct exec_region |
paul@364 | 42 | { |
paul@364 | 43 | l4_addr_t start; |
paul@364 | 44 | offset_t size; |
paul@364 | 45 | l4_umword_t flags; |
paul@364 | 46 | l4_cap_idx_t ds; |
paul@364 | 47 | }; |
paul@364 | 48 | |
paul@364 | 49 | |
paul@364 | 50 | |
paul@364 | 51 | /* Utility functions. */ |
paul@364 | 52 | |
paul@364 | 53 | l4re_aux_t *exec_get_l4re_aux(int argc, char *argv[]); |
paul@364 | 54 | |
paul@364 | 55 | EXTERN_C_END |
paul@364 | 56 | |
paul@364 | 57 | /* vim: tabstop=2 expandtab shiftwidth=2 |
paul@364 | 58 | */ |