From f700ba6668dbdb91a03b2c5aa387eb4cabae8fcd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 21 Aug 2020 20:39:48 +0200 Subject: Some things here and some things there --- kernel/features/event.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'kernel/features/event.c') diff --git a/kernel/features/event.c b/kernel/features/event.c index 02f5f1d..8fafb05 100644 --- a/kernel/features/event.c +++ b/kernel/features/event.c @@ -52,7 +52,7 @@ u32 event_trigger(enum event id, u32 *data) struct node *iterator = ((struct list *)event_table[id])->head; - if (!iterator->data) { + if (memcmp(event_table[id], 0, sizeof(struct list)) == 0) { printf("Event %d not mapped!\n", id); return 1; } @@ -65,7 +65,5 @@ u32 event_trigger(enum event id, u32 *data) break; } - // TODO: Execute event function in ring3 with process stack, ... - /* location(data); */ return 0; } -- cgit v1.2.3