Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
mm_context.h File Reference
#include <linux/mutex.h>
#include <asm/ldt.h>

Go to the source code of this file.

Data Structures

struct  ldt_entry
 
struct  uml_ldt
 
struct  uml_arch_mm_context
 

Macros

#define LDT_PAGES_MAX   ((LDT_ENTRIES * LDT_ENTRY_SIZE)/PAGE_SIZE)
 
#define LDT_ENTRIES_PER_PAGE   (PAGE_SIZE/LDT_ENTRY_SIZE)
 
#define LDT_DIRECT_ENTRIES   ((LDT_PAGES_MAX*sizeof(void *))/LDT_ENTRY_SIZE)
 
#define LDT_entry_a(info)   ((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff))
 
#define LDT_entry_b(info)
 
#define _LDT_empty(info)
 
#define LDT_empty(info)   (_LDT_empty(info))
 

Typedefs

typedef struct uml_ldt uml_ldt_t
 

Functions

void ldt_host_info (void)
 

Macro Definition Documentation

#define _LDT_empty (   info)
Value:
(\
(info)->base_addr == 0 && \
(info)->limit == 0 && \
(info)->contents == 0 && \
(info)->read_exec_only == 1 && \
(info)->seg_32bit == 0 && \
(info)->limit_in_pages == 0 && \
(info)->seg_not_present == 1 && \
(info)->useable == 0 )

Definition at line 52 of file mm_context.h.

#define LDT_DIRECT_ENTRIES   ((LDT_PAGES_MAX*sizeof(void *))/LDT_ENTRY_SIZE)

Definition at line 20 of file mm_context.h.

#define LDT_empty (   info)    (_LDT_empty(info))

Definition at line 65 of file mm_context.h.

#define LDT_ENTRIES_PER_PAGE   (PAGE_SIZE/LDT_ENTRY_SIZE)

Definition at line 18 of file mm_context.h.

#define LDT_entry_a (   info)    ((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff))

Definition at line 37 of file mm_context.h.

#define LDT_entry_b (   info)
Value:
(((info)->base_addr & 0xff000000) | \
(((info)->base_addr & 0x00ff0000) >> 16) | \
((info)->limit & 0xf0000) | \
(((info)->read_exec_only ^ 1) << 9) | \
((info)->contents << 10) | \
(((info)->seg_not_present ^ 1) << 15) | \
((info)->seg_32bit << 22) | \
((info)->limit_in_pages << 23) | \
((info)->useable << 20) | \
0x7000)

Definition at line 40 of file mm_context.h.

#define LDT_PAGES_MAX   ((LDT_ENTRIES * LDT_ENTRY_SIZE)/PAGE_SIZE)

Definition at line 16 of file mm_context.h.

Typedef Documentation

Function Documentation

void ldt_host_info ( void  )