Re: adsl/pppoe no longer connecting on 5.1

From: Kris Kennaway <kris_at_obsecurity.org>
Date: Thu, 12 Jun 2003 00:44:51 -0700
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
_at__at_ -50,7 +50,7 _at__at_
 	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

Received on Wed Jun 11 2003 - 22:44:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC