diff options
author | Jay Freeman <saurik@saurik.com> | 2008-04-06 10:28:29 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-04-06 10:28:29 +0000 |
commit | d699a01fabaa04a1aad60f6ca5777f82ee24839a (patch) | |
tree | 1eb62bad23b14a0877c5b9171f2a5f9358c8d592 /data/odcctools/x86.diff | |
parent | 8a49e427447f40fdd43fc4b5f513b166dd639e2a (diff) |
Drastic, sweeping modifications to support iPhone 1.2.0/2.0.
git-svn-id: http://svn.telesphoreo.org/trunk@199 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/odcctools/x86.diff')
-rw-r--r-- | data/odcctools/x86.diff | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/data/odcctools/x86.diff b/data/odcctools/x86.diff new file mode 100644 index 000000000..14d4e2695 --- /dev/null +++ b/data/odcctools/x86.diff @@ -0,0 +1,53 @@ +diff -ru odcctools-236/libstuff/swap_headers.c odcctools-236+iPhone/libstuff/swap_headers.c +--- odcctools-236/libstuff/swap_headers.c 2008-03-20 16:32:08.000000000 +0000 ++++ odcctools-236+iPhone/libstuff/swap_headers.c 2008-03-30 20:18:22.000000000 +0000 +@@ -634,13 +634,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 */ + +@@ -678,8 +678,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 +@@ -694,8 +694,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){ +@@ -1313,9 +1313,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; |