idle0_task.c
来自「xen虚拟机源代码安装包」· C语言 代码 · 共 30 行
C
30 行
#include <xen/config.h>#include <xen/sched.h>#include <asm/desc.h>#define IDLE_VCPU(_v) \{ \ processor: 0, \ domain: 0 \}/* * Initial task structure. * * We need to make sure that this is properly aligned due to the way process * stacks are handled. * This is done by having a special ".data.init_task" section... * * init_task_mem shouldn't be used directly. the corresponding address in * the identity mapping area should be used. * I.e. __va(ia64_tpa(init_task_mem)) should be used. */union { struct { struct vcpu task; } s; unsigned long stack[KERNEL_STACK_SIZE/sizeof (unsigned long)];} init_task_mem __attribute__((section(".data.init_task"))) = {{ .task = IDLE_VCPU(init_task_mem.s.task)}};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?