Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 19 → Rev 20

/SPARTAN/trunk/include/arch.h
35,7 → 35,7
#include <cpu.h>
#include <arch/cpu.h>
 
#define CPU (cpu_private_data[CPU_ID_ARCH].cpu)
#define CPU (&cpus[CPU_ID_ARCH])
#define THREAD (cpu_private_data[CPU_ID_ARCH].thread)
#define TASK (cpu_private_data[CPU_ID_ARCH].task)
 
/SPARTAN/trunk/include/cpu.h
73,7 → 73,6
* read only by other CPUs
*/
struct cpu_private_data {
cpu_t *cpu;
thread_t *thread;
task_t *task;
};
/SPARTAN/trunk/src/cpu/cpu.c
74,8 → 74,6
for (j = 0; j < RQ_COUNT; j++) {
list_initialize(&cpus[i].rq[j].rq_head);
}
cpu_private_data[i].cpu = &cpus[i];
}
#ifdef __SMP__