From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31325 invoked from network); 10 May 2022 20:52:57 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 10 May 2022 20:52:57 -0000 Received: (qmail 30185 invoked by uid 550); 10 May 2022 20:52:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30149 invoked from network); 10 May 2022 20:52:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yLZV5kfYqy9XWrO+yjFawqVzHW3NOdxcrSNVD5d64ec=; b=LdAezT7voF5WG+GpYem4d/XoO8IJdcuYhkx8Fbj1RKvh5QyMG2L339vfBf2R6ci81G IXNcjFpF5Ak7db2mI6A9HjKNUk+0ohQVWNiGpLLuV/n5JysA8J9nTi2bVF7AB56NoSFs yrwCmlTMctu0+K0CxGtL14kWhHC18JTlVf0gGPVcSVv1dr0ouu2qB0JkJCYayGy0mKQ7 ZmSoSyr2wAKq5k97LfLd3R4gI+C67TU//VGWL3jAgVbtgWdUBk1vcON49usbHZJw2kjx ysGl4sQCa1Z+VY69Gn1+NTv7ZIPAQfDChkEYi81XEf2SV9PNOF/TVX9XHEu1whsNcjc9 u18w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yLZV5kfYqy9XWrO+yjFawqVzHW3NOdxcrSNVD5d64ec=; b=kNJoMlJ5LSRc+Z1khhRBPxC4vSE1d9nan1eoW+8GpYsUHBIoM2qX3Jk5xExqQMyaLO xQaVwlhk+uoe1Bbn4AsWlqK+jH1a7ZUXPqk3Qh1JQNOsxqtV154LsPYrTrCF/Ka/z/H2 JfLzQpzFE95X0VFWSpYT1J7mkPyLaJ4Hw9p6L+pxqlk8HkdNrxY3jtBSRsxQseyoCVW9 VoeuOBz0TkExprNRH5eMF8RQq4sIU1hB7WAEFOO0t11RSC3xEQi18KmQNrtjR1h5aXtV jM6RDJBDFMGit4u99eYvfzOksnvoOMCN+8JWc2pV0T3/XasAKUrWsr0GAdZ16Y/jFpnE HB8g== X-Gm-Message-State: AOAM533bJROFJSu6DQrhKS+TN5joZz4ySe5GMqST2rOIRtLMSI1VrAMX 44iqRTL2dyAxzHiie1+YTa8+l2GaJYg= X-Google-Smtp-Source: ABdhPJyt3nr9CMwrtRFIrj3qY1hpv9YW+UJcwPMnn7RlYwnVsaS6J3dXats3J2WqUMkJnGkmsaGEqQ== X-Received: by 2002:a63:8549:0:b0:3d7:758c:1ea3 with SMTP id u70-20020a638549000000b003d7758c1ea3mr4482787pgd.143.1652215960772; Tue, 10 May 2022 13:52:40 -0700 (PDT) From: Florian Fainelli To: musl@lists.openwall.com Cc: dalias@libc.org, thomas.petazzoni@bootlin.com, stefan.kristiansson@saunalahti.fi, Florian Fainelli Date: Tue, 10 May 2022 13:52:33 -0700 Message-Id: <20220510205233.2184270-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [musl] [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: 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