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?