Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/ebus/include/ebus.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ enum EBUS_EVENT {
EBUS_EVENT_ANY = 0,
EBUS_EVENT_TIMER,
EBUS_EVENT_KEY,
EBUS_EVENT_TASK_SWITCH,
EBUS_EVENT_TASK_KILL,
};

typedef struct _ebus_event {
Expand All @@ -37,22 +35,12 @@ typedef struct _ebus_event {
uint32_t time;
} timer;
struct {
// raw = 0x83
// keycode = 0x03
// event = PRESS
// mods = SHIFT + ALT
uint8_t event;
uint8_t mods;
char c;
uint32_t keycode;
uint32_t scancode;
} key;
struct {
uint32_t next_task_pid;
} task_switch;
struct {
uint32_t task_pid;
} task_kill;
};
} ebus_event_t;

Expand Down
12 changes: 0 additions & 12 deletions src/kernel/src/kernel.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,18 +256,6 @@ int kernel_close_process(process_t * proc) {
next = __kernel.pm.idle_task;
}

ebus_event_t launch_event;
launch_event.event_id = EBUS_EVENT_TASK_SWITCH;
launch_event.task_switch.next_task_pid = next->pid;

queue_event(&launch_event);

ebus_event_t kill_event;
kill_event.event_id = EBUS_EVENT_TASK_KILL;
kill_event.task_kill.task_pid = proc->pid;

queue_event(&kill_event);

return 0;
}

Expand Down