1 /* TILE-Gx specific core note handling.
2 Copyright (C) 2012 Tilera Corporation
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 #define BACKEND tilegx_
41 #include "libebl_CPU.h"
43 static const Ebl_Register_Location prstatus_regs[] =
45 { .offset = 0, .regno = 0, .count = 56, .bits = 64 }, /* r0-r55 */
46 { .offset = 56 * 8, .regno = 64, .count = 1, .bits = 64 } /* pc */
48 #define PRSTATUS_REGS_SIZE (57 * 8)
50 #define ULONG uint64_t
52 #define TYPE_ULONG ELF_T_XWORD
53 #define TYPE_LONG ELF_T_SXWORD
55 #define UID_T uint32_t
56 #define GID_T uint32_t
60 #define TYPE_PID_T ELF_T_SWORD
61 #define TYPE_UID_T ELF_T_WORD
62 #define TYPE_GID_T ELF_T_WORD
64 #include "linux-core-note.c"