diff options
Diffstat (limited to 'kernel/features/event.c')
-rw-r--r-- | kernel/features/event.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } |