Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: root@chaos.analogic.com
Cc: Richard Henderson <rth@twiddle.net>,
	axp-list <axp-list@redhat.com>,
	FrameBuffer <linux-fbdev@vuser.vu.union.edu>
Subject: Re: bug in fbmem.c,
Date: Mon, 28 Jun 1999 17:46:08 -0400	[thread overview]
Message-ID: <3777ED20.1CB60952@pobox.com> (raw)
In-Reply-To: Pine.LNX.3.95.990628173155.278A-100000@chaos.analogic.com

"Richard B. Johnson" wrote:
> 
> On Mon, 28 Jun 1999, Richard Henderson wrote:
> 
> > On Wed, Jun 23, 1999 at 09:35:43AM -0400, Jeff Garzik wrote:
> > > +   if (copy_size > 0) {
> > > +           char tmpbuf [copy_size];
> >
> > You can't do dynamic stack allocation in the kernel.
> > You'll have to use kmalloc or get_free_page or something.
> >
> > r~
> >
> 
> Are you sure? With some limits-checking it should work, compiler
> just subtracts N words from the stack-pointer to make room and
> since the compiler 'knows' it did this, it still 'knows' where
> everything else is.

Even if the compiler can do it the fix is not correct because data
copying need only occur on the Alpha, not on all platforms.

	Jeff


       reply	other threads:[~1999-07-08  1:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.95.990628173155.278A-100000@chaos.analogic.com>
1999-06-28 21:46 ` Jeff Garzik [this message]
1999-06-28 22:49   ` bug in fbmem.c, Richard Henderson
     [not found] <19990622130211.05844@atrey.karlin.mff.cuni.cz>
1999-06-22 11:03 ` Vignaud Jean-Baptiste
1999-06-22  8:57 Vignaud Jean-Baptiste
     [not found] ` <3770E2AF.4BC00019@pobox.com>
1999-06-28 19:55   ` Richard Henderson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox