cvs commit: src/sys/compat/ndis kern_ndis.c ndis_var.h ntoskrnl_var.h subr_ndis.c subr_ntoskrnl.c src/sys/dev/if_ndis if_ndis.c

Julian Elischer julian at elischer.org
Sat Mar 20 17:02:23 PST 2004



On Sat, 20 Mar 2004, Bill Paul wrote:

> wpaul       2004/03/20 15:39:43 PST
> 
>   
>   - In if_ndis.c, most drivers don't accept NDIS_80211_AUTHMODE_AUTO,
>     but NDIS_80211_AUTHMODE_SHARED may not be right in some cases,
>     so for now always use NDIS_80211_AUTHMODE_OPEN.
>   
>   NOTE: There is still one problem with the Intel 2200BG driver: it
>   happens that the kernel stack in Windows is larger than the kernel
>   stack in FreeBSD. The 2200BG driver sometimes eats up more than 2
>   pages of stack space, which can lead to a double fault panic.
>   For the moment, I got things to work by adding the following to
>   my kernel config file:
>   
>   options         KSTACK_PAGES=8
>   
>   I'm pretty sure 8 is too big; I just picked this value out of a hat
>   as a test, and it happened to work, so I left it. 4 pages might be
>   enough. Unfortunately, I don't think you can dynamically give a
>   thread a larger stack, so I'm not sure how to handle this short of
>   putting a note in the man page about it and dealing with the flood
>   of mail from people who never read man pages.

Actually kernel threads can dynamically change to a different kstack
and allocate themselves a bigger one.. I forget where it is used but I
remember that htere is codde in exit to clean up teh extra kernel stack
if it is being used..

Is this running as  a kernel thread or on a user's kernel thread stack?




More information about the cvs-src mailing list