diff --git a/test/emu/nanos6/instr_nanos6.h b/test/emu/nanos6/instr_nanos6.h index 6cd4824..5ddc9d8 100644 --- a/test/emu/nanos6/instr_nanos6.h +++ b/test/emu/nanos6/instr_nanos6.h @@ -5,9 +5,10 @@ #define INSTR_NANOS6_H #include "../instr.h" -#include "compat.h" -static inline void +#include "task.h" + +static inline uint32_t instr_nanos6_type_create(int32_t typeid) { struct ovni_ev ev = {0}; @@ -26,6 +27,8 @@ instr_nanos6_type_create(int32_t typeid) nbytes += strlen(p) + 1; ovni_ev_jumbo_emit(&ev, (uint8_t *) buf, nbytes); + + return task_get_type_gid(p); } INSTR_2ARG(instr_nanos6_task_create, "6Tc", int32_t, id, uint32_t, typeid)