URL:
<http://savannah.nongnu.org/bugs/?22415>
Summary: malloc and realloc not using SPH in winavr20071221
Project: AVR C Runtime Library
Submitted by: curtvm
Submitted on: Monday 02/25/2008 at 17:26
Category: Library
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: libc code
Status: None
Percent Complete: 0%
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
WinAVR20071221-
malloc.o and realloc.o in every libc.a is missing the use of SPH when getting
the stack pointer.
This line from malloc.c, which should be getting the SP-
cp = STACK_POINTER() - __malloc_margin;
ends up only getting SPL-
114: 8d b7 in r24, 0x3d ; 61
116: 28 2f mov r18, r24
118: 30 e0 ldi r19, 0x00 ; 0
SPH is not being used.
avr freaks thread-
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=60233&start=20&postdays=0&postorder=asc&highlight=
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?22415>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev