|
armOS
0.1.0
Minimal ARM Operating System for the Raspberry Pi - Documentation generated for Pi 4.
|
|
Go to the documentation of this file.
78 int32_t preempt_count;
93 #define TASK_RUNNING 0
111 #define FIRST_TASK task[0]
116 #define LAST_TASK task[NR_TASKS-1]
122 #define THREAD_SIZE 4096
136 #define INIT_TASK { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, 0,0,1,0 }
138 #define INIT_TASK { {0,0,0,0,0,0,0,0,0,0,0,0,0}, 0,0,1,0 }
void schedule_tail()
Definition: scheduler.c:41
Definition: scheduler.h:81
void timer_tick()
Definition: scheduler.c:154
cpu_context cpu_context
Definition: scheduler.h:82
void switch_to(task_struct *next)
Definition: scheduler.c:46
Definition: scheduler.h:43
uint64_t x22
Definition: scheduler.h:47
task_struct * task[NR_TASKS]
Definition: scheduler.c:25
uint64_t x28
Definition: scheduler.h:53
void preempt_enable()
Definition: scheduler.c:36
void preempt_disable()
Definition: scheduler.c:31
uint64_t x23
Definition: scheduler.h:48
task_struct * current
Definition: scheduler.c:23
uint64_t pc
Definition: scheduler.h:56
int64_t state
Definition: scheduler.h:83
int nr_tasks
Definition: scheduler.c:28
int64_t counter
Definition: scheduler.h:84
uint64_t x26
Definition: scheduler.h:51
uint64_t sp
Definition: scheduler.h:55
int64_t priority
Definition: scheduler.h:85
uint64_t x25
Definition: scheduler.h:50
void schedule()
Definition: scheduler.c:146
int64_t preempt_count
Definition: scheduler.h:86
uint64_t x20
Definition: scheduler.h:45
uint64_t x21
Definition: scheduler.h:46
uint64_t x24
Definition: scheduler.h:49
uint64_t x27
Definition: scheduler.h:52
uint64_t x19
Definition: scheduler.h:44
void cpu_switch_to(task_struct *prev, task_struct *next)
uint64_t fp
Definition: scheduler.h:54
#define NR_TASKS
Definition: scheduler.h:97