aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/event.c
diff options
context:
space:
mode:
authorMarvin Borner2020-08-21 20:39:48 +0200
committerMarvin Borner2020-08-21 20:39:48 +0200
commitf700ba6668dbdb91a03b2c5aa387eb4cabae8fcd (patch)
treeb04a80efabb09c9da9726332ccd22cb5a325fe39 /kernel/features/event.c
parent1339d96cea2c647991c178587008d6fc40772a78 (diff)
Some things here and some things there
Diffstat (limited to 'kernel/features/event.c')
-rw-r--r--kernel/features/event.c4
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;
}