1 /* ARM specific core note handling.
2 Copyright (C) 2009 Red Hat, Inc.
3 This file is part of elfutils.
5 This file is free software; you can redistribute it and/or modify
6 it under the terms of either
8 * the GNU Lesser General Public License as published by the Free
9 Software Foundation; either version 3 of the License, or (at
10 your option) any later version
14 * the GNU General Public License as published by the Free
15 Software Foundation; either version 2 of the License, or (at
16 your option) any later version
18 or both in parallel, as here.
20 elfutils is distributed in the hope that it will be useful, but
21 WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 General Public License for more details.
25 You should have received copies of the GNU General Public License and
26 the GNU Lesser General Public License along with this program. If
27 not, see <http://www.gnu.org/licenses/>. */
40 #include "libebl_CPU.h"
43 static const Ebl_Register_Location prstatus_regs[] =
45 { .offset = 0, .regno = 0, .count = 16, .bits = 32 }, /* r0..r15 */
46 { .offset = 16 * 4, .regno = 128, .count = 1, .bits = 32 }, /* cpsr */
48 #define PRSTATUS_REGS_SIZE (18 * 4)
50 #define PRSTATUS_REGSET_ITEMS \
52 .name = "orig_r0", .type = ELF_T_SWORD, .format = 'd', \
53 .offset = offsetof (struct EBLHOOK(prstatus), pr_reg) + (4 * 17), \
57 static const Ebl_Register_Location fpregset_regs[] =
59 { .offset = 0, .regno = 96, .count = 8, .bits = 96 }, /* f0..f7 */
61 #define FPREGSET_SIZE 140
63 #define ULONG uint32_t
65 #define UID_T uint16_t
66 #define GID_T uint16_t
71 #define TYPE_ULONG ELF_T_WORD
72 #define TYPE_PID_T ELF_T_SWORD
73 #define TYPE_UID_T ELF_T_HALF
74 #define TYPE_GID_T ELF_T_HALF
76 #include "linux-core-note.c"