Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2004 16:41:41 -0800 (PST)
From:      Bill Paul <wpaul@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/compat/ndis kern_ndis.c ntoskrnl_var.h subr_ntoskrnl.c
Message-ID:  <200403220041.i2M0fgTg050950@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
wpaul       2004/03/21 16:41:41 PST

  FreeBSD src repository

  Modified files:
    sys/compat/ndis      kern_ndis.c ntoskrnl_var.h 
                         subr_ntoskrnl.c 
  Log:
  The Intel 2200BG NDIS driver does an alloca() of about 5000 bytes
  when it associates with a net. Because FreeBSD's kstack size is only
  2 pages by default, this blows the stack and causes a double fault.
  
  To deal with this, we now create all our kthreads with 8 stack pages.
  Also, we now run all timer callouts in the ndis swi thread (since
  they would otherwise run in the clock ithread, whose stack is too
  small). It happens that the alloca() in this case was occuring within
  the interrupt handler, which was already running in the ndis swi
  thread, but I want to deal with the callouts too just to be extra
  safe.
  
  NOTE: this will only work if you update vm_machdep.c with the change
  I just committed. If you don't include this fix, setting the number
  of stack pages with kthread_create() has essentially no effect.
  
  Revision  Changes    Path
  1.44      +4 -2      src/sys/compat/ndis/kern_ndis.c
  1.11      +7 -0      src/sys/compat/ndis/ntoskrnl_var.h
  1.30      +21 -6     src/sys/compat/ndis/subr_ntoskrnl.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403220041.i2M0fgTg050950>