summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-07-14 09:48:50 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2024-07-14 09:48:50 +0000
commit5d97d781354fd9a672facbf67e35e6f5413c055b (patch)
tree2471113964071307bad212f25e1383074cb898ea /sys/arch/powerpc
parentca37f40c3a8a098c1b9c69645a39c675aeb5cac1 (diff)
Add elf_aux_info(3)
Designed to let userland peek at AT_HWCAP and AT_HWCAP2 using an already existing interface coming from FreeBSD. Headers bits were snatched from there. Input & ok kettenis@ libc bump and sets sync will follow soon
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/elf.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/arch/powerpc/include/elf.h b/sys/arch/powerpc/include/elf.h
new file mode 100644
index 00000000000..6624f42f237
--- /dev/null
+++ b/sys/arch/powerpc/include/elf.h
@@ -0,0 +1,14 @@
+/* $OpenBSD: elf.h,v 1.1 2024/07/14 09:48:48 jca Exp $ */
+
+/*
+ * This file is in the public domain.
+ */
+
+#ifndef _MACHINE_ELF_H_
+#define _MACHINE_ELF_H_
+
+/*
+ * TODO FreeBSD puts PPC_FEATURE* in cpu.h
+ */
+
+#endif /* !_MACHINE_ELF_H_ */