1 /* Types for registers for sys/procfs.h. OpenRISC version. 2 Copyright (C) 2022 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 5 The GNU C Library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 The GNU C Library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with the GNU C Library; if not, see 17 <https://www.gnu.org/licenses/>. */ 18 19 #ifndef _SYS_PROCFS_H 20 # error "Never include <bits/procfs.h> directly; use <sys/procfs.h> instead." 21 #endif 22 23 #include <sys/ucontext.h> 24 25 #define ELF_NGREG __NGREG 26 27 /* Type for a general-purpose register. */ 28 typedef unsigned long int elf_greg_t; 29 30 /* And the array of general-purpose registers. We could have used `struct 31 user_regs' directly, but tradition says that the register set is an array, 32 which does have some peculiar semantics, so leave it that way. 33 GDB uses this for prtrace GETREGSET, on OpenRISC the regset contains 32 34 gprs the PC and the SR, 34 longs. */ 35 typedef elf_greg_t elf_gregset_t[34]; 36 37 /* Register set for the floating-point registers. */ 38 typedef elf_greg_t elf_fpregset_t[32]; 39