mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Florian Fainelli <f.fainelli@gmail.com>
To: musl@lists.openwall.com
Cc: dalias@libc.org, thomas.petazzoni@bootlin.com,
	stefan.kristiansson@saunalahti.fi,
	Florian Fainelli <f.fainelli@gmail.com>
Subject: [musl] [PATCH] Define user_regs, elf_greg_t and elf_fpregset_t for or1k
Date: Tue, 10 May 2022 13:52:33 -0700	[thread overview]
Message-ID: <20220510205233.2184270-1-f.fainelli@gmail.com> (raw)

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


                 reply	other threads:[~2022-05-10 20:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220510205233.2184270-1-f.fainelli@gmail.com \
    --to=f.fainelli@gmail.com \
    --cc=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    --cc=stefan.kristiansson@saunalahti.fi \
    --cc=thomas.petazzoni@bootlin.com \
    --subject='Re: [musl] [PATCH] Define user_regs, elf_greg_t and elf_fpregset_t for or1k' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this 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).