blob: 94f97d338b8fb61b4b9375fe23b235c0f59c0134 [file] [log] [blame]
/**
* @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;
}