* [musl] [PATCH] Define user_regs, elf_greg_t and elf_fpregset_t for or1k
@ 2022-05-10 20:52 Florian Fainelli
0 siblings, 0 replies; only message in thread
From: Florian Fainelli @ 2022-05-10 20:52 UTC (permalink / raw)
To: musl; +Cc: dalias, thomas.petazzoni, stefan.kristiansson, Florian Fainelli
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:
http://autobuild.buildroot.net/results/2a9cf20949beac46d1c689df2c5b7ab0d59c08b5/
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;
--
2.25.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-10 20:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 20:52 [musl] [PATCH] Define user_regs, elf_greg_t and elf_fpregset_t for or1k Florian Fainelli
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).