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] |
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
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |