* [PATCH] s390x: add bits/hwcap.h
@ 2017-08-29 17:46 Szabolcs Nagy
2017-08-29 23:41 ` Natanael Copa
0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2017-08-29 17:46 UTC (permalink / raw)
To: musl
based on linux arch/s390/include/asm/elf.h
(these macros should be exported into uapi, but they are not)
---
arch/s390x/bits/hwcap.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 arch/s390x/bits/hwcap.h
diff --git a/arch/s390x/bits/hwcap.h b/arch/s390x/bits/hwcap.h
new file mode 100644
index 00000000..ecc6ce1f
--- /dev/null
+++ b/arch/s390x/bits/hwcap.h
@@ -0,0 +1,15 @@
+#define HWCAP_S390_ESAN3 1
+#define HWCAP_S390_ZARCH 2
+#define HWCAP_S390_STFLE 4
+#define HWCAP_S390_MSA 8
+#define HWCAP_S390_LDISP 16
+#define HWCAP_S390_EIMM 32
+#define HWCAP_S390_DFP 64
+#define HWCAP_S390_HPAGE 128
+#define HWCAP_S390_ETF3EH 256
+#define HWCAP_S390_HIGH_GPRS 512
+#define HWCAP_S390_TE 1024
+#define HWCAP_S390_VXRS 2048
+#define HWCAP_S390_VXRS_BCD 4096
+#define HWCAP_S390_VXRS_EXT 8192
+#define HWCAP_S390_GS 16384
--
2.14.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] s390x: add bits/hwcap.h
2017-08-29 17:46 [PATCH] s390x: add bits/hwcap.h Szabolcs Nagy
@ 2017-08-29 23:41 ` Natanael Copa
2017-08-30 1:41 ` Rich Felker
0 siblings, 1 reply; 3+ messages in thread
From: Natanael Copa @ 2017-08-29 23:41 UTC (permalink / raw)
To: Szabolcs Nagy; +Cc: musl
On Tue, 29 Aug 2017 19:46:46 +0200
Szabolcs Nagy <nsz@port70.net> wrote:
> based on linux arch/s390/include/asm/elf.h
> (these macros should be exported into uapi, but they are not)
> ---
FWIW, this patch is needed for to build nodejs on s390x[1] and is tested
on alpine[2].
Thanks!
-nc
[1]: https://github.com/nodejs/node/issues/15078
[2]: http://dup.pw/aports/f30eafa7
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] s390x: add bits/hwcap.h
2017-08-29 23:41 ` Natanael Copa
@ 2017-08-30 1:41 ` Rich Felker
0 siblings, 0 replies; 3+ messages in thread
From: Rich Felker @ 2017-08-30 1:41 UTC (permalink / raw)
To: musl
On Tue, Aug 29, 2017 at 04:41:13PM -0700, Natanael Copa wrote:
> On Tue, 29 Aug 2017 19:46:46 +0200
> Szabolcs Nagy <nsz@port70.net> wrote:
>
> > based on linux arch/s390/include/asm/elf.h
> > (these macros should be exported into uapi, but they are not)
> > ---
>
> FWIW, this patch is needed for to build nodejs on s390x[1] and is tested
> on alpine[2].
>
> Thanks!
Thanks. Committing.
Rich
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-30 1:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-29 17:46 [PATCH] s390x: add bits/hwcap.h Szabolcs Nagy
2017-08-29 23:41 ` Natanael Copa
2017-08-30 1:41 ` Rich Felker
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).