adsl/pppoe no longer connecting on 5.1

Kris Kennaway kris at obsecurity.org
Thu Jun 12 00:44:52 PDT 2003


On Thu, Jun 12, 2003 at 12:38:36AM -0700, Kris Kennaway wrote:

> Okay, it looks like alloca.S was broken.  My previous patch that
> increased the size of allocations was just a gratuitous difference
> with the inline version, and is not necessary.  Here's a fix that
> seems to get ppp to stop complaining.

Oops, forgot to remove the movl.

Index: alloca.S
===================================================================
RCS file: /usr/home/ncvs/src/lib/libc/i386/gen/alloca.S,v
retrieving revision 1.10
diff -u -r1.10 alloca.S
--- alloca.S	23 Mar 2002 02:44:18 -0000	1.10
+++ alloca.S	12 Jun 2003 07:41:45 -0000
@@ -50,7 +50,7 @@
 	addl	$3,%eax		/*  round up to next word */
 	andl	$0xfffffffc,%eax
 	subl	%eax,%esp
-	movl	%esp,%eax	/* base of newly allocated space */
+	leal    24(%esp), %eax	/* base of newly allocated space */
 	pushl	8(%ecx)		/* copy possible saved registers */
 	pushl	4(%ecx)
 	pushl	0(%ecx)

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030612/74979517/attachment.bin


More information about the freebsd-current mailing list