From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Mon, 2 Nov 2009 19:54:32 -0400 Subject: [U-Boot] Net driver questions In-Reply-To: References: <200911021753.39366.vapier@gentoo.org> Message-ID: <200911021854.32779.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 02 November 2009 18:38:59 Krzysztof Halasa wrote: > Mike Frysinger writes: > >> Let's look... The code does NetSetHandler(TftpHandler). > >> I think NetReceive() calls (*packetHandler)() = TftpHandler and this one > >> may call NetStartAgain(). > > > > but this doesnt call recv(), and NetStartAgain() changes the handler, so > > i still dont see recursion with the recv() function. but perhaps your > > definition of recursive is different from mine. recv() does not turn > > around and call recv(), but recv() may turn around and call other driver > > functions. > > I haven't debugged it yet (is there a way to print a backtrace?) but > the first recv() doesn't return from NetReceive(). the Blackfin port has a way of dumping a backtrace, but i dont know about any other arch -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20091102/e7a305fb/attachment.pgp