Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Tue, 10 May 2022 13:52:33 -0700
From: Florian Fainelli <>
	Florian Fainelli <>
Subject: [PATCH] Define user_regs, elf_greg_t and elf_fpregset_t for or1k

The OpenRISC architecture is currently missing a definition of its
user_regs structure, elf_greg_t and elf_fpregset_t as well as ELF_NGREG,
add those.
I stumbled upon this while adding support for cpulimit in buildroot
which failed to build:

 arch/or1k/bits/user.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/or1k/bits/user.h b/arch/or1k/bits/user.h
index e69de29bb2d1..3405bf771c0f 100644
--- a/arch/or1k/bits/user.h
+++ b/arch/or1k/bits/user.h
@@ -0,0 +1,11 @@
+struct user_regs {
+	unsigned long gpr[32];
+	unsigned long pc;
+	unsigned long sr;
+#define ELF_NGREG 34
+typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
+/* or32 does not have floating point support, placeholder */
+typedef unsigned long elf_fpregset_t;

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.