From 2f3dcbed1f2823e42afdcddbd745a845040f3c57 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Mon, 20 Feb 2023 14:40:18 +0100 Subject: [PATCH] Return error on enforce_task_rules for nanos6 --- src/emu/nanos6/event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/emu/nanos6/event.c b/src/emu/nanos6/event.c index 5fdf0c7..b18b908 100644 --- a/src/emu/nanos6/event.c +++ b/src/emu/nanos6/event.c @@ -346,8 +346,7 @@ enforce_task_rules(struct emu *emu, char tr, struct task *next) if (ss.type == VALUE_INT64 && ss.i != ST_TASK_BODY) { err("wrong subsystem state on task begin"); - //return -1; - return 0; // FIXME + return -1; } return 0;