Browse Source

* created prototype for cpu_switch_context_exit()

dev/timer
Oleg Hahm 10 years ago
parent
commit
e8af0c42c3
  1. 1
      core/include/sched.h
  2. 1
      core/kernel_init.c
  3. 2
      core/sched.c

1
core/include/sched.h

@ -26,6 +26,7 @@ void sched_run(void);
void sched_set_status(tcb_t *process, unsigned int status);
void sched_switch(uint16_t current_prio, uint16_t other_prio, int in_isr);
void cpu_switch_context_exit(void);
extern volatile unsigned int sched_context_switch_request;

1
core/kernel_init.c

@ -38,7 +38,6 @@ volatile tcb_t *active_thread;
volatile int lpm_prevent_sleep = 0;
extern void main(void);
extern void cpu_switch_context_exit(void);
static void idle_thread(void) {
while(1) {

2
core/sched.c

@ -171,8 +171,6 @@ void sched_switch(uint16_t current_prio, uint16_t other_prio, int in_isr) {
}
}
extern void cpu_switch_context_exit(void);
void sched_task_exit(void) {
DEBUG("sched_task_exit(): ending task %s...\n", active_thread->name);

Loading…
Cancel
Save