X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-um%2Fldt.h;h=52af512f5e7dcf272a73de968b709f900218e98d;hb=5b39dba5029108800b94a5f4f96e3a05417103ac;hp=96f82a456ce6515b781b44ef676034d402af1cfb;hpb=f18dd516d433d0b740aa8365d706f5ad47603449;p=linux-2.6 diff --git a/include/asm-um/ldt.h b/include/asm-um/ldt.h index 96f82a456c..52af512f5e 100644 --- a/include/asm-um/ldt.h +++ b/include/asm-um/ldt.h @@ -8,14 +8,10 @@ #ifndef __ASM_LDT_H #define __ASM_LDT_H -#include "asm/semaphore.h" +#include #include "asm/host_ldt.h" -struct mmu_context_skas; extern void ldt_host_info(void); -extern long init_new_ldt(struct mmu_context_skas * to_mm, - struct mmu_context_skas * from_mm); -extern void free_ldt(struct mmu_context_skas * mm); #define LDT_PAGES_MAX \ ((LDT_ENTRIES * LDT_ENTRY_SIZE)/PAGE_SIZE) @@ -31,7 +27,7 @@ struct ldt_entry { typedef struct uml_ldt { int entry_count; - struct semaphore semaphore; + struct mutex lock; union { struct ldt_entry * pages[LDT_PAGES_MAX]; struct ldt_entry entries[LDT_DIRECT_ENTRIES];