Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220517215826.1016573-1-f.fainelli@gmail.com>
Date: Tue, 17 May 2022 14:58:26 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: musl@...ts.openwall.com
Cc: dalias@...c.org,
	thomas.petazzoni@...tlin.com,
	stefan.kristiansson@...nalahti.fi,
	shorne@...il.com,
	Florian Fainelli <f.fainelli@...il.com>
Subject: [PATCH v2] 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.
---
Changes in v2:

- Follow Stafford's recommendations based upon glibc

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

diff --git a/arch/or1k/bits/user.h b/arch/or1k/bits/user.h
index e69de29bb2d1..227f022e2fec 100644
--- a/arch/or1k/bits/user.h
+++ b/arch/or1k/bits/user.h
@@ -0,0 +1,10 @@
+struct user_regs {
+	unsigned long gpr[32];
+	unsigned long pc;
+	unsigned long sr;
+};
+
+#define ELF_NGREG 32
+typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
+
+typedef elf_greg_t elf_fpregset_t[ELF_NGREG];
-- 
2.25.1

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.