Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 184 → Rev 183

/SPARTAN/trunk/src/main/main.c
134,7 → 134,10
task_t *k;
thread_t *t;
 
the_initialize(THE);
THE->preemption_disabled = 0;
THE->cpu = NULL;
THE->thread = NULL;
THE->task = NULL;
 
arch_pre_mm_init();
heap_init(config.base + hardcoded_ktext_size + hardcoded_kdata_size, CONFIG_HEAP_SIZE + heap_delta);
/SPARTAN/trunk/src/Makefile
16,7 → 16,6
lib/func.c \
lib/list.c \
lib/memstr.c \
lib/the.c \
debug/print.c \
time/clock.c \
time/timeout.c \
/SPARTAN/trunk/src/proc/scheduler.c
252,13 → 252,6
}
 
/*
* Through the 'THE' structure, we keep track of THREAD, TASK, CPU
* and preemption counter. At this point THE could be coming either
* from THREAD's or CPU's stack.
*/
the_copy(THE, (the_t *) CPU->stack);
 
/*
* We may not keep the old stack.
* Reason: If we kept the old stack and got blocked, for instance, in
* find_best_thread(), the old thread could get rescheduled by another
404,8 → 397,6
printf("cpu%d: tid %d (pri=%d,ticks=%d,nrdy=%d)\n", CPU->id, THREAD->tid, THREAD->pri, THREAD->ticks, CPU->nrdy);
#endif
 
the_copy(THE, (the_t *) THREAD->kstack);
context_restore(&THREAD->saved_context);
/* not reached */
}
/SPARTAN/trunk/src/proc/thread.c
196,8 → 196,6
context_save(&t->saved_context);
context_set(&t->saved_context, FADDR(cushion), t->kstack, THREAD_STACK_SIZE);
the_initialize((the_t *) t->kstack);
 
pri = cpu_priority_high();
t->saved_context.pri = cpu_priority_read();
/SPARTAN/trunk/src/lib/the.c
File deleted