Skip to content

Commit 427f3a4

Browse files
authored
Remove task events (#11)
1 parent 11e4c42 commit 427f3a4

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/ebus/include/ebus.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ enum EBUS_EVENT {
2424
EBUS_EVENT_ANY = 0,
2525
EBUS_EVENT_TIMER,
2626
EBUS_EVENT_KEY,
27-
EBUS_EVENT_TASK_SWITCH,
28-
EBUS_EVENT_TASK_KILL,
2927
};
3028

3129
typedef struct _ebus_event {
@@ -37,22 +35,12 @@ typedef struct _ebus_event {
3735
uint32_t time;
3836
} timer;
3937
struct {
40-
// raw = 0x83
41-
// keycode = 0x03
42-
// event = PRESS
43-
// mods = SHIFT + ALT
4438
uint8_t event;
4539
uint8_t mods;
4640
char c;
4741
uint32_t keycode;
4842
uint32_t scancode;
4943
} key;
50-
struct {
51-
uint32_t next_task_pid;
52-
} task_switch;
53-
struct {
54-
uint32_t task_pid;
55-
} task_kill;
5644
};
5745
} ebus_event_t;
5846

src/kernel/src/kernel.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,6 @@ int kernel_close_process(process_t * proc) {
256256
next = __kernel.pm.idle_task;
257257
}
258258

259-
ebus_event_t launch_event;
260-
launch_event.event_id = EBUS_EVENT_TASK_SWITCH;
261-
launch_event.task_switch.next_task_pid = next->pid;
262-
263-
queue_event(&launch_event);
264-
265-
ebus_event_t kill_event;
266-
kill_event.event_id = EBUS_EVENT_TASK_KILL;
267-
kill_event.task_kill.task_pid = proc->pid;
268-
269-
queue_event(&kill_event);
270-
271259
return 0;
272260
}
273261

0 commit comments

Comments
 (0)