__getreent in libgloss
Stefan Wallentowitz
stefan.wallentowitz@tum.de
Mon Nov 3 13:50:00 GMT 2014
Dear all,
I am currently porting (baremetal) libgloss/newlib for OpenRISC (or1k).
I want to use dynamic reentrancy and think I basically understood it.
Can you please confirm that the following steps are correct and the
proper way to go:
I specify __DYNAMIC_REENT__ for the machine in
newlib/libc/include/sys/config.h. I also set
newlib_cflags="${newlib_cflags} -DREENTRANT_SYSCALLS_PROVIDED " and
syscall_dir=syscalls in configure.host for the target. By default newlib
takes __getreent() and I can overwrite __getreent to my own function.
Where should I do this? I set it in config.h (#define __getreent
or1k_getreent), but then I also need to define the external function
(extern struct _reent *or1k_getreent(void)), correct?
Thanks for your help.
Best regards,
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4929 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20141103/c2adc3d5/attachment.p7s>
More information about the Newlib
mailing list