End the _t nonsense
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
#include <stdint.h>
|
||||
#include <io/serial/serial.h>
|
||||
|
||||
extern struct process_t* processes_list;
|
||||
extern struct process_t* current_process;
|
||||
extern struct process_t* idle_proc;
|
||||
extern struct process* processes_list;
|
||||
extern struct process* current_process;
|
||||
extern struct process* idle_proc;
|
||||
|
||||
/*
|
||||
* scheduler_init - Choose the first process
|
||||
@@ -32,7 +32,7 @@ void scheduler_init()
|
||||
* Return:
|
||||
* <context> - CPU context for next process
|
||||
*/
|
||||
struct cpu_status_t* scheduler_schedule(struct cpu_status_t* context)
|
||||
struct cpu_status* scheduler_schedule(struct cpu_status* context)
|
||||
{
|
||||
if (context == NULL) {
|
||||
panic(NULL, "Scheduler called with NULL context");
|
||||
@@ -51,7 +51,7 @@ struct cpu_status_t* scheduler_schedule(struct cpu_status_t* context)
|
||||
current_process->context = context;
|
||||
|
||||
for (;;) {
|
||||
struct process_t* prev_process = current_process;
|
||||
struct process* prev_process = current_process;
|
||||
if (current_process->next != NULL) {
|
||||
current_process = current_process->next;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user