"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mono/utils/mach-support-amd64.c" between
mono-6.12.0.107.tar.xz and mono-6.12.0.122.tar.xz

About: Mono is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.

mach-support-amd64.c  (mono-6.12.0.107.tar.xz):mach-support-amd64.c  (mono-6.12.0.122.tar.xz)
skipping to change at line 106 skipping to change at line 106
int int
mono_mach_arch_get_thread_fpstate_size () mono_mach_arch_get_thread_fpstate_size ()
{ {
return sizeof (x86_float_state64_t); return sizeof (x86_float_state64_t);
} }
kern_return_t kern_return_t
mono_mach_arch_get_thread_states (thread_port_t thread, thread_state_t state, ma ch_msg_type_number_t *count, thread_state_t fpstate, mach_msg_type_number_t *fpc ount) mono_mach_arch_get_thread_states (thread_port_t thread, thread_state_t state, ma ch_msg_type_number_t *count, thread_state_t fpstate, mach_msg_type_number_t *fpc ount)
{ {
#if defined(HOST_WATCHOS)
g_error ("thread_get_state() is not supported by this platform");
#else
x86_thread_state64_t *arch_state = (x86_thread_state64_t *)state; x86_thread_state64_t *arch_state = (x86_thread_state64_t *)state;
x86_float_state64_t *arch_fpstate = (x86_float_state64_t *)fpstate; x86_float_state64_t *arch_fpstate = (x86_float_state64_t *)fpstate;
kern_return_t ret; kern_return_t ret;
*count = x86_THREAD_STATE64_COUNT; *count = x86_THREAD_STATE64_COUNT;
*fpcount = x86_FLOAT_STATE64_COUNT; *fpcount = x86_FLOAT_STATE64_COUNT;
ret = thread_get_state (thread, x86_THREAD_STATE64, (thread_state_t)arch_ state, count); ret = thread_get_state (thread, x86_THREAD_STATE64, (thread_state_t)arch_ state, count);
if (ret != KERN_SUCCESS) if (ret != KERN_SUCCESS)
return ret; return ret;
ret = thread_get_state (thread, x86_FLOAT_STATE64, (thread_state_t)arch_f pstate, fpcount); ret = thread_get_state (thread, x86_FLOAT_STATE64, (thread_state_t)arch_f pstate, fpcount);
return ret; return ret;
#endif
} }
kern_return_t kern_return_t
mono_mach_arch_set_thread_states (thread_port_t thread, thread_state_t state, ma ch_msg_type_number_t count, thread_state_t fpstate, mach_msg_type_number_t fpcou nt) mono_mach_arch_set_thread_states (thread_port_t thread, thread_state_t state, ma ch_msg_type_number_t count, thread_state_t fpstate, mach_msg_type_number_t fpcou nt)
{ {
#if defined(HOST_WATCHOS)
g_error ("thread_set_state() is not supported by this platform");
#else
kern_return_t ret; kern_return_t ret;
ret = thread_set_state (thread, x86_THREAD_STATE64, state, count); ret = thread_set_state (thread, x86_THREAD_STATE64, state, count);
if (ret != KERN_SUCCESS) if (ret != KERN_SUCCESS)
return ret; return ret;
ret = thread_set_state (thread, x86_FLOAT_STATE64, fpstate, fpcount); ret = thread_set_state (thread, x86_FLOAT_STATE64, fpstate, fpcount);
return ret; return ret;
#endif
} }
#endif #endif
 End of changes. 4 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)