⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idle0_task.c

📁 xen虚拟机源代码安装包
💻 C
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -