Path: blob/master/arch/um/sys-i386/shared/sysdep/host_ldt.h
17658 views
#ifndef __ASM_HOST_LDT_I386_H1#define __ASM_HOST_LDT_I386_H23#include <asm/ldt.h>45/*6* macros stolen from include/asm-i386/desc.h7*/8#define LDT_entry_a(info) \9((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff))1011#define LDT_entry_b(info) \12(((info)->base_addr & 0xff000000) | \13(((info)->base_addr & 0x00ff0000) >> 16) | \14((info)->limit & 0xf0000) | \15(((info)->read_exec_only ^ 1) << 9) | \16((info)->contents << 10) | \17(((info)->seg_not_present ^ 1) << 15) | \18((info)->seg_32bit << 22) | \19((info)->limit_in_pages << 23) | \20((info)->useable << 20) | \210x7000)2223#define LDT_empty(info) (\24(info)->base_addr == 0 && \25(info)->limit == 0 && \26(info)->contents == 0 && \27(info)->read_exec_only == 1 && \28(info)->seg_32bit == 0 && \29(info)->limit_in_pages == 0 && \30(info)->seg_not_present == 1 && \31(info)->useable == 0 )3233#endif343536