freebsd-nq/sys/compat/ndis
Bill Paul 6f4481422e More minor cleanups and one small bug fix:
- In ntoskrnl_var.h, I had defined compat macros for
  ntoskrnl_acquire_spinlock() and ntoskrnl_release_spinlock() but
  never used them. This is fortunate since they were stale. Fix them
  to work properly. (In Windows/x86 KeAcquireSpinLock() is a macro that
  calls KefAcquireSpinLock(), which lives in HAL.dll. To imitate this,
  ntoskrnl_acquire_spinlock() is just a macro that calls hal_lock(),
  which lives in subr_hal.o.)

- Add macros for ntoskrnl_raise_irql() and ntoskrnl_lower_irql() that
  call hal_raise_irql() and hal_lower_irql().

- Use these macros in kern_ndis.c, subr_ndis.c and subr_ntoskrnl.c.

- Along the way, I realised subr_ndis.c:ndis_lock() was not calling
  hal_lock() correctly (it was using the FASTCALL2() wrapper when
  in reality this routine is FASTCALL1()). Using the
  ntoskrnl_acquire_spinlock() fixes this. Not sure if this actually
  caused any bugs since hal_lock() would have just ignored what
  was in %edx, but it was still bogus.

This hides many of the uses of the FASTCALLx() macros which makes the
code a little cleaner. Should not have any effect on generated object
code, other than the one fix in ndis_lock().
2004-08-04 18:22:50 +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 Big mess 'o changes: 2004-08-01 20:04:31 +00:00
kern_ndis.c More minor cleanups and one small bug fix: 2004-08-04 18:22:50 +00:00
ndis_var.h Big mess 'o changes: 2004-08-01 20:04:31 +00:00
ntoskrnl_var.h More minor cleanups and one small bug fix: 2004-08-04 18:22:50 +00:00
pe_var.h Big mess 'o changes: 2004-08-01 20:04:31 +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 Big mess 'o changes: 2004-08-01 20:04:31 +00:00
subr_ndis.c More minor cleanups and one small bug fix: 2004-08-04 18:22:50 +00:00
subr_ntoskrnl.c More minor cleanups and one small bug fix: 2004-08-04 18:22:50 +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