mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-07 13:15:22 +07:00
![Cody P Schafer](/assets/img/avatar_default.png)
Including libio.h causes build failures on uClibc systems (which lack libio.h). It appears that libio.h was only included to pull in a definition for NULL, so it has been replaced by stddef.h. On powerpc, libio.h was conditionally included, but could be removed completely as it is unneeded. Also, the included of stdlib.h was changed to stddef.h (as again, only NULL is needed). Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1363300074-26288-1-git-send-email-cody@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
23 lines
504 B
C
23 lines
504 B
C
/*
|
|
* Mapping of DWARF debug register numbers into register names.
|
|
*
|
|
* Copyright IBM Corp. 2010
|
|
* Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
|
|
*
|
|
*/
|
|
|
|
#include <stddef.h>
|
|
#include <dwarf-regs.h>
|
|
|
|
#define NUM_GPRS 16
|
|
|
|
static const char *gpr_names[NUM_GPRS] = {
|
|
"%r0", "%r1", "%r2", "%r3", "%r4", "%r5", "%r6", "%r7",
|
|
"%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15",
|
|
};
|
|
|
|
const char *get_arch_regstr(unsigned int n)
|
|
{
|
|
return (n >= NUM_GPRS) ? NULL : gpr_names[n];
|
|
}
|