mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Florian Fainelli <>
	Florian Fainelli <>
Subject: [musl] [PATCH v2] Define user_regs, elf_greg_t and elf_fpregset_t for or1k
Date: Tue, 17 May 2022 14:58:26 -0700	[thread overview]
Message-ID: <> (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.
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];

             reply	other threads:[~2022-05-17 21:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-17 21:58 Florian Fainelli [this message]
2022-05-19  4:18 ` [musl] " Stafford Horne
2022-05-19 21:29   ` Florian Fainelli

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:

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

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [musl] [PATCH v2] Define user_regs, elf_greg_t and elf_fpregset_t for or1k' \

* 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:

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).