[Top][All Lists]

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

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

From: Joerg Wunsch
Subject: Re: [avr-libc-dev] malloc bug ?
Date: Sun, 8 Sep 2002 10:25:58 +0200
User-agent: Mutt/1.2.5i

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.

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]