Index: compat/ndis/kern_windrv.c =================================================================== RCS file: /usr/cvs/FreeBSD-CVS/src/sys/compat/ndis/kern_windrv.c,v retrieving revision 1.6 diff -u -r1.6 kern_windrv.c --- compat/ndis/kern_windrv.c 11 Apr 2005 02:02:34 -0000 1.6 +++ compat/ndis/kern_windrv.c 17 Apr 2005 18:08:33 -0000 @@ -59,6 +59,9 @@ #include #include #include +#ifdef __i386__ +#include +#endif struct windrv_type { uint16_t windrv_vid; /* for PCI or USB */ @@ -545,7 +548,6 @@ #define SEL_LDT 4 /* local descriptor table */ #define SEL_TO_FS(x) (((x) << 3)) -#define FREEBSD_EMPTYSEL 7 /* * The meanings of various bits in a descriptor vary a little @@ -794,7 +796,7 @@ /* Find the slot we updated. */ gdt = gtable.base; - gdt += FREEBSD_EMPTYSEL; + gdt += GNDIS_SEL; /* Empty it out. */ @@ -832,11 +834,11 @@ /* Get pointer to empty slot */ - l += FREEBSD_EMPTYSEL; + l += GNDIS_SEL; /* Initialize TID for this CPU. */ - my_tids[t->td_oncpu].tid_selector = FREEBSD_EMPTYSEL; + my_tids[t->td_oncpu].tid_selector = GNDIS_SEL; my_tids[t->td_oncpu].tid_self = &my_tids[t->td_oncpu]; /* Set up new GDT entry. */