summaryrefslogtreecommitdiff
path: root/data/odcctools/x86.diff
blob: 1f383f646a5b482bcbdda0bcaf16065eaf26310b (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
diff -ru odcctools-253/libstuff/bytesex.c odcctools-253+iPhone/libstuff/bytesex.c
--- odcctools-253/libstuff/bytesex.c	2008-07-21 18:58:48.000000000 +0000
+++ odcctools-253+iPhone/libstuff/bytesex.c	2008-07-21 19:15:06.000000000 +0000
@@ -1408,7 +1408,7 @@
 #endif /* x86_THREAD_STATE64 */
 
 /* current i386 thread states */
-#if i386_THREAD_STATE == 1
+#if i386_THREAD_STATE == 1 && 0
 __private_extern__
 void
 swap_i386_float_state(
diff -ru odcctools-253/libstuff/swap_headers.c odcctools-253+iPhone/libstuff/swap_headers.c
--- odcctools-253/libstuff/swap_headers.c	2008-07-21 18:58:48.000000000 +0000
+++ odcctools-253+iPhone/libstuff/swap_headers.c	2008-07-21 19:07:38.000000000 +0000
@@ -635,13 +635,13 @@
 		   || cputype == CPU_TYPE_X86_64
 #endif /* x86_THREAD_STATE64 */
 		   ){
-		    i386_thread_state_t *cpu;
+		    x86_thread_state_t *cpu;
 #ifdef x86_THREAD_STATE64
 		    x86_thread_state64_t *cpu64;
 #endif /* x86_THREAD_STATE64 */
 /* current i386 thread states */
 #if i386_THREAD_STATE == 1
-		    struct i386_float_state *fpu;
+		    struct x86_float_state *fpu;
 		    i386_exception_state_t *exc;
 #endif /* i386_THREAD_STATE == 1 */
 
@@ -679,8 +679,8 @@
 				    "LC_THREAD", i);
 				return(FALSE);
 			    }
-			    cpu = (i386_thread_state_t *)state;
-			    state += sizeof(i386_thread_state_t);
+			    cpu = (x86_thread_state_t *)state;
+			    state += sizeof(x86_thread_state_t);
 			    break;
 /* current i386 thread states */
 #if i386_THREAD_STATE == 1
@@ -695,8 +695,8 @@
 				    "LC_THREAD", i);
 				return(FALSE);
 			    }
-			    fpu = (struct i386_float_state *)state;
-			    state += sizeof(struct i386_float_state);
+			    fpu = (struct x86_float_state *)state;
+			    state += sizeof(struct x86_float_state);
 			    break;
 			case i386_EXCEPTION_STATE:
 			    if(count != I386_EXCEPTION_STATE_COUNT){
@@ -1350,9 +1350,9 @@
 /* current i386 thread states */
 #if i386_THREAD_STATE == 1
 			case i386_FLOAT_STATE:
-			    fpu = (struct i386_float_state *)state;
+			    fpu = (struct x86_float_state *)state;
 			    swap_i386_float_state(fpu, target_byte_sex);
-			    state += sizeof(struct i386_float_state);
+			    state += sizeof(struct x86_float_state);
 			    break;
 			case i386_EXCEPTION_STATE:
 			    exc = (i386_exception_state_t *)state;