Bug 171550 - [ndis] [patch] "no match for InterlockedCompareExchange" and then kernel panic upon kldload ndisgen module for RTL8188/8192CU
Summary: [ndis] [patch] "no match for InterlockedCompareExchange" and then kernel pani...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 9.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 17:40 UTC by Chris Radek
Modified: 2017-12-31 22:23 UTC (History)
0 users

See Also:


Attachments
file.diff (1.62 KB, patch)
2012-09-11 17:40 UTC, Chris Radek
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Radek 2012-09-11 17:40:07 UTC
One of the things I tried to get my Airlink101 AWLL5099 (usb wifi)
working was wrapping various related drivers with ndisgen.  This patch
fixes a kernel panic upon loading the resulting .ko file, and eliminates
the warning "no match for InterlockedCompareExchange".

The driver still didn't work, and I have moved on, but google searches
tell me that other drivers may also need this call so I figure the patch
might be helpful.

In my case, the remaining failure is "no match for PoRequestPowerIrp"
and I don't understand that one well enough to fix it.

Fix: Attached patch

Patch attached with submission follows:
How-To-Repeat: Use ndisgen to wrap a windows driver that uses InterlockedCompareExchange.
For example, the one found at:
http://www.airlink101.com/support/index.php?cmd=files&id=202

Or apparently others:
http://lists.freebsd.org/pipermail/freebsd-current/2006-January/059723.html
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-05-04 05:06:07 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:08 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped