From 34c9f34f04320f466eb6069e382d94241a64c705 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Fri, 24 Feb 2023 16:53:02 +0100 Subject: [PATCH] Get the gid from nanos6 task types too --- test/emu/nanos6/instr_nanos6.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)