1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/sys/compat/ndis
Bill Paul a91395a9d0 Tests with my dual Opteron system have shown that it's possible
for code to start out on one CPU when thunking into Windows
mode in ctxsw_utow(), and then be pre-empted and migrated to another
CPU before thunking back to UNIX mode in ctxsw_wtou(). This is
bad, because then we can end up looking at the wrong 'thread environment
block' when trying to come back to UNIX mode. To avoid this, we now
pin ourselves to the current CPU when thunking into Windows code.

Few other cleanups, since I'm here:

- Get rid of the ndis_isr(), ndis_enable_interrupt() and
  ndis_disable_interrupt() wrappers from kern_ndis.c and just invoke
  the miniport's methods directly in the interrupt handling routines
  in subr_ndis.c. We may as well lose the function call overhead,
  since we don't need to export these things outside of ndis.ko
  now anyway.

- Remove call to ndis_enable_interrupt() from ndis_init() in if_ndis.c.
  We don't need to do it there anyway (the miniport init routine handles
  it, if needed).

- Fix the logic in NdisWriteErrorLogEntry() a little.

- Change some NDIS_STATUS_xxx codes in subr_ntoskrnl.c into STATUS_xxx
  codes.

- Handle kthread_create() failure correctly in PsCreateSystemThread().
2005-11-02 18:01:04 +00:00
..
cfg_var.h
hal_var.h
kern_ndis.c Tests with my dual Opteron system have shown that it's possible 2005-11-02 18:01:04 +00:00
kern_windrv.c Tests with my dual Opteron system have shown that it's possible 2005-11-02 18:01:04 +00:00
ndis_var.h Tests with my dual Opteron system have shown that it's possible 2005-11-02 18:01:04 +00:00
ntoskrnl_var.h Get rid of the timer tracking and reaping code in NdisMInitializeTimer() 2005-10-26 06:52:57 +00:00
pe_var.h Clean up and apply the fix for PR 83477. The calculation for locating 2005-10-26 18:46:27 +00:00
resource_var.h
subr_hal.c
subr_ndis.c Tests with my dual Opteron system have shown that it's possible 2005-11-02 18:01:04 +00:00
subr_ntoskrnl.c Tests with my dual Opteron system have shown that it's possible 2005-11-02 18:01:04 +00:00
subr_pe.c Clean up and apply the fix for PR 83477. The calculation for locating 2005-10-26 18:46:27 +00:00
subr_usbd.c
usbd_var.h
winx32_wrap.S Tests with my dual Opteron system have shown that it's possible 2005-11-02 18:01:04 +00:00
winx64_wrap.S