avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] malloc bug ?


From: ken restivo
Subject: Re: [avr-libc-dev] malloc bug ?
Date: Sun, 8 Sep 2002 11:31:35 -0700
User-agent: Mutt/1.3.25i

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SP doesn't seem to work.  Maybe __SP__ instead?  Just manually changing 
STACK_POINTER to 0x5d seems to work just fine.

- -ken
- ------
On Sun, Sep 08, 2002 at 09:55:41PM +1200, daniel_laptop wrote:
> Joerg Wunsch wrote:
> 
> > As daniel_laptop wrote:
> >
> > > Can someone with more experence confirm if I am right ?
> > >
> > > in libc/stdlib/malloc.c
> > > the line
> > >
> > > #define STACK_POINTER() (*(volatile unsigned int *)0x3d)
> > >
> > > should this be
> > >
> > > #define STACK_POINTER() (*(volatile unsigned int *)0x5d)
> >
> > I think you're right.  Instead, we should probably just include
> > <avr/io.h>, and use (char *)SP instead.
> >
> 
> Will avr/io.h work in this file (compiled for all divice versions) ?
> 
> 
> >
> > --
> > J"org Wunsch                                           Unix support engineer
> > address@hidden        http://www.interface-systems.de/~j/
> 
> 
> 
> _______________________________________________
> AVR-libc-dev mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/avr-libc-dev

- -- 
- ---------------
The world's most affordable web hosting.
http://www.nearlyfreespeech.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9e5eGe8HF+6xeOIcRAnBiAKCfw/IqoYdqHwxoR8rBAp2A//2F+ACg4yl+
Y/lmuJRn15+rJKDvj/hh4Yw=
=/Rx5
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]