mailing list of musl libc
 help / color / mirror / code / Atom feed
* Need "_fpx_sw_bytes", "FP_XSTATE_MAGIC2_SIZE" and "FP_XSTATE_MAGIC{1,2}" definition to compile CoreCLR
@ 2016-08-04 21:15 Dangling Pointer
  2016-08-30 21:42 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Dangling Pointer @ 2016-08-04 21:15 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

Please provide the user-facing definitions of "struct _fpx_sw_bytes" and macros "FP_XSTATE_MAGIC2_SIZE", "FP_XSTATE_MAGIC1" and "FP_XSTATE_MAGIC2" to compile CoreCLR.


Related issue: https://github.com/dotnet/coreclr/issues/917#issuecomment-236907708

Usage:  https://github.com/dotnet/coreclr/blob/9585fc2/src/pal/src/include/pal/context.h#L142-L178

[-- Attachment #2: Type: text/html, Size: 1102 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Need "_fpx_sw_bytes", "FP_XSTATE_MAGIC2_SIZE" and "FP_XSTATE_MAGIC{1,2}" definition to compile CoreCLR
  2016-08-04 21:15 Need "_fpx_sw_bytes", "FP_XSTATE_MAGIC2_SIZE" and "FP_XSTATE_MAGIC{1,2}" definition to compile CoreCLR Dangling Pointer
@ 2016-08-30 21:42 ` Rich Felker
  2016-10-01 10:28   ` Jan Vorlicek
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2016-08-30 21:42 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

On Thu, Aug 04, 2016 at 09:15:40PM +0000, Dangling Pointer wrote:
> Please provide the user-facing definitions of "struct _fpx_sw_bytes" and macros "FP_XSTATE_MAGIC2_SIZE", "FP_XSTATE_MAGIC1" and "FP_XSTATE_MAGIC2" to compile CoreCLR.
> 
> 
> Related issue: https://github.com/dotnet/coreclr/issues/917#issuecomment-236907708
> 
> Usage:  https://github.com/dotnet/coreclr/blob/9585fc2/src/pal/src/include/pal/context.h#L142-L178

Would a patch like the attached me sufficient? Does 32-bit x86 need
something like this too?

Rich

[-- Attachment #2: fpx.diff --]
[-- Type: text/plain, Size: 582 bytes --]

diff --git a/arch/x86_64/bits/signal.h b/arch/x86_64/bits/signal.h
index e3c3141..5393649 100644
--- a/arch/x86_64/bits/signal.h
+++ b/arch/x86_64/bits/signal.h
@@ -33,6 +33,14 @@
 #endif
 
 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define FP_XSTATE_MAGIC1 0x46505853U
+#define FP_XSTATE_MAGIC2 0x46505845U
+#define FP_XSTATE_MAGIC2_SIZE 4UL
+struct _fpx_sw_bytes {
+	unsigned magic1, extended_size;
+	unsigned long xstate_bv;
+	unsigned xstate_size, padding[7];
+};
 typedef long long greg_t, gregset_t[23];
 typedef struct _fpstate {
 	unsigned short cwd, swd, ftw, fop;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Need "_fpx_sw_bytes", "FP_XSTATE_MAGIC2_SIZE" and "FP_XSTATE_MAGIC{1,2}" definition to compile CoreCLR
  2016-08-30 21:42 ` Rich Felker
@ 2016-10-01 10:28   ` Jan Vorlicek
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Vorlicek @ 2016-10-01 10:28 UTC (permalink / raw)
  To: Rich Felker, musl

In addition to that, we would also need the _xstate struct (and obviously also the structs it refers to, like _ymmh_state, _xsave_hdr, ...). 
We only need that for x64.

Thanks,

Jan

-----Original Message-----
From: Rich Felker [mailto:dalias@libc.org] 
Sent: Tuesday, August 30, 2016 11:43 PM
To: musl@lists.openwall.com
Subject: Re: [musl] Need "_fpx_sw_bytes", "FP_XSTATE_MAGIC2_SIZE" and "FP_XSTATE_MAGIC{1,2}" definition to compile CoreCLR

On Thu, Aug 04, 2016 at 09:15:40PM +0000, Dangling Pointer wrote:
> Please provide the user-facing definitions of "struct _fpx_sw_bytes" and macros "FP_XSTATE_MAGIC2_SIZE", "FP_XSTATE_MAGIC1" and "FP_XSTATE_MAGIC2" to compile CoreCLR.
> 
> 
> Related issue: 
> https://github.com/dotnet/coreclr/issues/917#issuecomment-236907708
> 
> Usage:  
> https://github.com/dotnet/coreclr/blob/9585fc2/src/pal/src/include/pal
> /context.h#L142-L178

Would a patch like the attached me sufficient? Does 32-bit x86 need something like this too?

Rich


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-01 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 21:15 Need "_fpx_sw_bytes", "FP_XSTATE_MAGIC2_SIZE" and "FP_XSTATE_MAGIC{1,2}" definition to compile CoreCLR Dangling Pointer
2016-08-30 21:42 ` Rich Felker
2016-10-01 10:28   ` Jan Vorlicek

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