/** | |
* @author Ilya Berezhniuk | |
*/ | |
#include "open/ncai_thread.h" | |
#include "ncai_internal.h" | |
#include "port_thread.h" | |
bool ncai_get_generic_registers(hythread_t thread, Registers* regs) | |
{ | |
if (regs == NULL) | |
return false; | |
ucontext_t uc; | |
IDATA status = hythread_get_thread_context(thread, &uc); | |
if (status != TM_ERROR_NONE) | |
return false; | |
port_thread_context_to_regs(regs, &uc); | |
return true; | |
} |