/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* OpenRISC Linux3*4* Linux architectural port borrowing liberally from similar works of5* others. All original copyrights apply as per the original source6* declaration.7*8* OpenRISC implementation:9* Copyright (C) 2003 Matjaz Breskvar <[email protected]>10* Copyright (C) 2010-2011 Jonas Bonn <[email protected]>11* et al.12*/13#ifndef __ASM_OPENRISC_ELF_H14#define __ASM_OPENRISC_ELF_H151617#include <linux/types.h>18#include <uapi/asm/elf.h>1920/*21* This is used to ensure we don't load something for the wrong architecture.22*/2324#define elf_check_arch(x) \25(((x)->e_machine == EM_OR32) || ((x)->e_machine == EM_OPENRISC))2627/* This is the location that an ET_DYN program is loaded if exec'ed. Typical28use of this is to invoke "./ld.so someprog" to test out a new version of29the loader. We need to make sure that it is out of the way of the program30that it will "exec", and that there is sufficient room for the brk. */3132#define ELF_ET_DYN_BASE (0x08000000)3334/*35* Enable dump using regset.36* This covers all of general/DSP/FPU regs.37*/38#define CORE_DUMP_USE_REGSET3940#define ELF_EXEC_PAGESIZE 81924142extern void dump_elf_thread(elf_greg_t *dest, struct pt_regs *pt);43#define ELF_CORE_COPY_REGS(dest, regs) dump_elf_thread(dest, regs);4445/* This yields a mask that user programs can use to figure out what46instruction set this cpu supports. This could be done in userspace,47but it's not easy, and we've already done it here. */4849#define ELF_HWCAP (0)5051/* This yields a string that ld.so will use to load implementation52specific libraries for optimization. This is more specific in53intent than poking at uname or /proc/cpuinfo.5455For the moment, we have only optimizations for the Intel generations,56but that could change... */5758#define ELF_PLATFORM (NULL)5960#endif616263