This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: free() does not call sbrk()


2009/9/15 Jeff Johnston <jjohnstn@redhat.com>:
> ...
> I believe the culprit has to be UART_write which is not a part of newlib. ?I
> took your code and ran it with an mn10300-elf newlib build (using a
> simulator) and for x86-linux newlib locally on my x86-linux machine. ?I
> replaced the UART_write call with a direct "write" syscall and it works just
> as expected; the same pointer each time.

Actually, my port is for a standalone system and the write stub simply
passes its arguments on to the UART_write function. So, directly
calling the write syscall does not make a difference. UART_write then
passes each character to UART_putc which stores the argument in the
UART's send register. Did I miss something here?

Cheers,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]