freebsd-nq/sys/compat/ndis
Bill Paul a1788fb41e Small timer cleanups:
- Use the dh_inserted member of the dispatch header in the Windows
  timer structure to indicate that the timer has been "inserted into
  the timer queue" (i.e. armed via timeout()). Use this as the value
  to return to the caller in KeCancelTimer(). Previously, I was using
  callout_pending(), but you can't use that with timeout()/untimeout()
  without creating a potential race condition.

- Make ntoskrnl_init_timer() just a wrapper around ntoskrnl_init_timer_ex()
  (reduces some code duplication).

- Drop Giant when entering if_ndis.c:ndis_tick() and
  subr_ntorkrnl.c:ntoskrnl_timercall(). At the moment, I'm forced to
  use system callwheel via timeout()/untimeout() to handle timers rather
  than the callout API (struct callout is too big to fit inside the
  Windows struct KTIMER, so I'm kind of hosed). Unfortunately, all
  the callouts in the callwhere are not marked as MPSAFE, so when
  one of them fires, it implicitly acquires Giant before invoking the
  callback routine (and releases it when it returns). I don't need to
  hold Giant, but there's no way to stop the callout code from acquiring
  it as long as I'm using timeout()/untimeout(), so for now we cheat
  by just dropping Giant right away (and re-acquiring it right before
  the routine returns so keep the callout code happy). At some point,
  I will need to solve this better, but for now this should be a suitable
  workaround.
2004-04-30 20:51:55 +00:00
..
cfg_var.h Deal with the duplicate sysctl leaf problem. A .inf file may contain 2003-12-18 03:51:21 +00:00
hal_var.h Continue my efforts to imitate Windows as closely as possible by 2004-04-14 07:48:03 +00:00
kern_ndis.c Ok, _really_ fix the Intel 2100B Centrino deadlock problems this time. 2004-04-22 07:08:39 +00:00
ndis_var.h Continue my efforts to imitate Windows as closely as possible by 2004-04-14 07:48:03 +00:00
ntoskrnl_var.h Correct the AT_DISPATCH_LEVEL() macro to match earlier changes. 2004-04-20 02:27:38 +00:00
pe_var.h Continue my efforts to imitate Windows as closely as possible by 2004-04-14 07:48:03 +00:00
resource_var.h Add missing cprd_flags member to partial resource structure in 2004-03-29 02:15:29 +00:00
subr_hal.c Try to handle recursive attempts to raise IRQL to DISPATCH_LEVEL better 2004-04-19 22:39:04 +00:00
subr_ndis.c - Use memory barrier with atomic operations in ntoskrnl_lock_dpc() and 2004-04-16 00:04:28 +00:00
subr_ntoskrnl.c Small timer cleanups: 2004-04-30 20:51:55 +00:00
subr_pe.c AMD64 has a single MS-Win calling convention, so provide an empty __stdcall. 2004-01-13 22:49:45 +00:00