kern/74626: NDIS kernel translation layer breaks ICC kernel building

Brenden Grace brenden.grace at gmail.com
Thu Dec 2 12:50:29 PST 2004


>Number:         74626
>Category:       kern
>Synopsis:       NDIS kernel translation layer breaks ICC kernel building
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 02 20:50:27 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Brenden Grace
>Release:        RELENG_5_3_0_RELEASE
>Organization:
Intelli7
>Environment:
FreeBSD  5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004     root at harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
Building a GENERIC kernel on FreeBSD 5.3 with Intel Compiler (v  8.1.024) fails when it reaches ndis (/usr/src/sys/compat/ndis). I was able to get around this issue and successfully building the GENERIC kernel by backing out the changes made in Rev 1.68 of subr_ndis.c and Rev 1.44 of subr_ntoskrnl.c (relative to HEAD not RELENG_5_3_0_RELEASE)
>How-To-Repeat:
Build a GENERIC kernel for RELENG_5_3_0_RELEASE with the Intel Compiler
>Fix:
I was able to get around this issue and successfully building the GENERIC kernel by backing out the changes made in Rev 1.68 of subr_ndis.c and Rev 1.44 of subr_ntoskrnl.c (relative to HEAD not RELENG_5_3_0_RELEASE)

Patch provided only for demonstration 

--- subr_ndis.c.orig    Thu Dec  2 15:23:25 2004
+++ subr_ndis.c Thu Dec  2 15:23:13 2004
@@ -2875,7 +2875,7 @@
        __stdcall ndis_proc     workfunc;
 
        work = ctx;
-       workfunc = (__stdcall ndis_proc) work->nwi_func;
+       workfunc = work->nwi_func;
        workfunc(work, work->nwi_ctx);
        return;
 }
--- subr_ntoskrnl.c.orig        Thu Dec  2 15:22:31 2004
+++ subr_ntoskrnl.c     Thu Dec  2 15:22:13 2004
@@ -1694,7 +1694,7 @@
        uint8_t                 irql;
 
        dpc = arg;
-       dpcfunc = (__stdcall kdpc_func) dpc->k_deferedfunc;
+       dpcfunc = (kdpc_func) dpc->k_deferedfunc;
        irql = ntoskrnl_raise_irql(DISPATCH_LEVEL);
        dpcfunc(dpc, dpc->k_deferredctx, dpc->k_sysarg1, dpc->k_sysarg2);
        ntoskrnl_lower_irql(irql);

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list