File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ enum EBUS_EVENT {
24
24
EBUS_EVENT_ANY = 0 ,
25
25
EBUS_EVENT_TIMER ,
26
26
EBUS_EVENT_KEY ,
27
- EBUS_EVENT_TASK_SWITCH ,
28
- EBUS_EVENT_TASK_KILL ,
29
27
};
30
28
31
29
typedef struct _ebus_event {
@@ -37,22 +35,12 @@ typedef struct _ebus_event {
37
35
uint32_t time ;
38
36
} timer ;
39
37
struct {
40
- // raw = 0x83
41
- // keycode = 0x03
42
- // event = PRESS
43
- // mods = SHIFT + ALT
44
38
uint8_t event ;
45
39
uint8_t mods ;
46
40
char c ;
47
41
uint32_t keycode ;
48
42
uint32_t scancode ;
49
43
} key ;
50
- struct {
51
- uint32_t next_task_pid ;
52
- } task_switch ;
53
- struct {
54
- uint32_t task_pid ;
55
- } task_kill ;
56
44
};
57
45
} ebus_event_t ;
58
46
Original file line number Diff line number Diff line change @@ -256,18 +256,6 @@ int kernel_close_process(process_t * proc) {
256
256
next = __kernel .pm .idle_task ;
257
257
}
258
258
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
-
271
259
return 0 ;
272
260
}
273
261
You can’t perform that action at this time.
0 commit comments