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: daniel_laptop
Subject: Re: [avr-libc-dev] malloc bug ?
Date: Sun, 08 Sep 2002 21:55:41 +1200

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/





reply via email to

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