summaryrefslogtreecommitdiff
path: root/devel/valgrind/files/patch-include__vki__vki-freebsd.h
blob: 32d1baaff0a4277b5d1428d9a8e9a1f4252bb9ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- include/vki/vki-freebsd.h.orig	2015-01-26 16:17:32.000000000 -0400
+++ include/vki/vki-freebsd.h	2015-08-31 04:55:29.139189000 -0300
@@ -684,6 +684,7 @@
 
 #define VKI_SOCK_STREAM	1
 
+#include <sys/types.h>
 #include <netinet/tcp.h>
 
 #define VKI_TCP_NODELAY  TCP_NODELAY
@@ -1888,11 +1889,23 @@
 #define VKI_I386_SET_FSBASE     8
 #define VKI_I386_GET_GSBASE     9
 #define VKI_I386_SET_GSBASE     10
+#define VKI_I386_SET_XFPUSTATE	11
 
 #define VKI_AMD64_GET_FSBASE    128
 #define VKI_AMD64_SET_FSBASE    129
 #define VKI_AMD64_GET_GSBASE    130
 #define VKI_AMD64_SET_GSBASE    131
+#define	VKI_AMD64_GET_XFPUSTATE	132
+
+typedef struct vki_i386_get_xfpustate {
+	unsigned int addr;
+	int len;
+};
+
+typedef struct vki_amd64_get_xfpustate {
+	void *addr;
+	int len;
+};
 
 //----------------------------------------------------------------------
 // From sys/module.h