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: [PATCH] use one send_to_ppe function for both spu libc and libgloss


Patrick Mansfield wrote:
On Mon, Apr 02, 2007 at 02:01:22PM -0400, Jeff Johnston wrote:

Anyway, regarding the header file: sys/send_to_ppe.h. Did you intend to expose this to the end-user? If not, then it should just be a

Yes, mainly for a send_to_ppe that can be supplied outside of newlib, not really for general user space usage, though it could be used to implement offloaded calls to the ppc that are not yet in newlib (send_to_ppe triggers an offload call to the ppc).

local.h file in the machine/spu directory that all the files can access and you can resubmit. Otherwise, you might consider putting in a sys/syscall.h header file. Let me know.

There are syscall.h header files are all over the place, I was trying to put one under newlib/libc/sys/spu/sys, does that sound like the right place? The send_to_ppe (for use by both newlib and libgloss callers) will be in libgloss/spu/syscalls.c

And then how do I get it copied to the build (and install) trees? I'm
trying to figure out if it is configure.in, Makefile.am or something else.
I can't tell if other syscall.h files are copied or not, the "general" one
under  at libgloss/syscall.h is not installed or AFAICT copied to the
build area.


Header files in newlib machine/xxxx/include and machine/xxxx/sys override those of the same name in libc/include and libc/include/sys. Yes, they are installed. There is no mechanism in place for installing the header files from the libgloss side. One would have to do this manually if necessary.


-- Jeff J.

-- Patrick Mansfield


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