ia64/xen-unstable

view linux-2.4.29-xen-sparse/include/asm-xen/desc.h @ 3516:1a4f61d36171

bitkeeper revision 1.1159.223.31 (41f599bcklevTYwPtWQUZ7QK-azDbg)

Fix recent patch to change the way the version string is generated.
Signed-off-by: ian.pratt@cl.cam.ac.uk
author iap10@freefall.cl.cam.ac.uk
date Tue Jan 25 00:58:36 2005 +0000 (2005-01-25)
parents ed0d4ce83995
children d126cac32f08
line source
1 #ifndef __ARCH_DESC_H
2 #define __ARCH_DESC_H
4 #include <asm/ldt.h>
6 #ifndef __ASSEMBLY__
8 struct desc_struct {
9 unsigned long a,b;
10 };
12 struct Xgt_desc_struct {
13 unsigned short size;
14 unsigned long address __attribute__((packed));
15 };
17 extern struct desc_struct default_ldt[];
19 static inline void clear_LDT(void)
20 {
21 /*
22 * NB. We load the default_ldt for lcall7/27 handling on demand, as
23 * it slows down context switching. Noone uses it anyway.
24 */
25 queue_set_ldt(0, 0);
26 }
28 static inline void load_LDT(mm_context_t *pc)
29 {
30 void *segments = pc->ldt;
31 int count = pc->size;
33 if ( count == 0 )
34 segments = NULL;
36 queue_set_ldt((unsigned long)segments, count);
37 }
39 #endif /* __ASSEMBLY__ */
41 #endif /* __ARCH_DESC_H__ */