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

📄 ldt.h

📁 xen 3.2.2 源码
💻 H
字号:
#ifndef __ARCH_LDT_H#define __ARCH_LDT_H#ifndef __ASSEMBLY__static inline void load_LDT(struct vcpu *v){    unsigned int cpu;    struct desc_struct *desc;    unsigned long ents;    if ( (ents = v->arch.guest_context.ldt_ents) == 0 )    {        __asm__ __volatile__ ( "lldt %%ax" : : "a" (0) );    }    else    {        cpu = smp_processor_id();        desc = (!is_pv_32on64_vcpu(v) ? gdt_table : compat_gdt_table)               + __LDT(cpu) - FIRST_RESERVED_GDT_ENTRY;        _set_tssldt_desc(desc, LDT_VIRT_START(v), ents*8-1, 2);        __asm__ __volatile__ ( "lldt %%ax" : : "a" (__LDT(cpu)<<3) );    }}#endif /* !__ASSEMBLY__ */#endif/* * Local variables: * mode: C * c-set-style: "BSD" * c-basic-offset: 4 * tab-width: 4 * indent-tabs-mode: nil * End: */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -