aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/i386/idle0_task.c
blob: a4c3f0d5c90705d0409d121d83e53362e953119b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <xeno/config.h>
#include <xeno/sched.h>
#include <asm/desc.h>

struct task_struct idle0_task = IDLE0_TASK(idle0_task);

/*
 * per-CPU TSS segments. Threads are completely 'soft' on Linux,
 * no more per-task TSS's. The TSS size is kept cacheline-aligned
 * so they are allowed to end up in the .data.cacheline_aligned
 * section. Since TSS's are completely CPU-local, we want them
 * on exact cacheline boundaries, to eliminate cacheline ping-pong.
 */ 
struct tss_struct init_tss[NR_CPUS] __cacheline_aligned = { [0 ... NR_CPUS-1] = INIT_TSS };