From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 3 01:41:19 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A57B016A41F for ; Wed, 3 Aug 2005 01:41:19 +0000 (GMT) (envelope-from rittera@cc.wwu.edu) Received: from titan.cc.wwu.edu (titan.cc.wwu.edu [140.160.240.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EB2743D48 for ; Wed, 3 Aug 2005 01:41:19 +0000 (GMT) (envelope-from rittera@cc.wwu.edu) Received: (from nobody@localhost) by titan.cc.wwu.edu (8.11.7p1+Sun/8.11.7) id j731fI117285; Tue, 2 Aug 2005 18:41:18 -0700 (PDT) From: Alan Ritter X-Authentication-Warning: titan.cc.wwu.edu: nobody set sender to rittera@cc.wwu.edu using -f Received: from 63.226.220.24 (SquirrelMail authenticated user rittera) by www.ac.wwu.edu with HTTP; Tue, 2 Aug 2005 18:41:18 -0700 (PDT) Message-ID: <62833.63.226.220.24.1123033278.squirrel@www.ac.wwu.edu> Date: Tue, 2 Aug 2005 18:41:18 -0700 (PDT) To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.4.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: [Fwd: Porting FreeBSD NDIS to NetBSD/nmb_fddirxindicate_func()] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2005 01:41:19 -0000 Oops, there is no tech-kern@freebsd.org. I hope this is the correct list for this message :-) ---------------------------- Original Message ---------------------------- Subject: Porting FreeBSD NDIS to NetBSD/nmb_fddirxindicate_func() From: "Alan Ritter" Date: Tue, August 2, 2005 4:26 pm To: wpaul@windriver.com Cc: tech-kern@netbsd.org tech-kern@freebsd.org -------------------------------------------------------------------------- Hi, I'm trying to port the FreeBSD NDIS code to NetBSD as part of Google's "Summer of Code" project (http://code.google.com/summerofcode.html). I'm having a little problem right now, when the attach function calls ndis_init_nic(), which calls the MiniportInitalize() function from the binary Windows driver for my network card (I got this working on FreeBSD) it blows up on the following instruction: call DWORD PTR [eax+380] After playing around with the debugger a bit I'm quite certain that eax is a pointer to the ndis_miniport_block, and 380 is the offset of the nmb_fddirxindicate_func() field within it. All there is at this address, however is 0x0: (gdb) x/8a $eax + 380 0xc15b2d7c: 0x0 0x0 0x0 0x0 0xc15b2d8c: 0xc0745955 0xc07459ad 0x0 0xc0745a32 I'm assuming that this should have been initialized somewhere, but I can't find any place in the code where nmb_fddirxindicate_func() is referenced. Maybe it is supposed to be initialized inside the binary Windows driver? I also tried jumping past the offending instruction, and there appeared to be more calls to uninitialized functions in the ndis_miniport_block(). Anyway, I just thought I'd check and see if you knew more about the nmb_fddirxindicate_func() member of the ndis_miniport_block structure. Thanks. P.S. here's some pointers to more information: My blog for the project: http://ndis-netbsd.blogspot.com/ Links to my sources online: http://cvs.sourceforge.net/viewcvs.py/netbsd-soc/ndis/ The project's webpage: http://netbsd-soc.sourceforge.net/projects/ndis/