[Cbe-oss-dev] [PATCH] libspe: elfspe: set argv[argc] = NULL

Arnd Bergmann arnd at arndb.de
Fri May 25 06:08:22 EST 2007


On Thursday 24 May 2007, Noguchi, Masato wrote:
> I felt too that it's reasonable passing envp. But, it will waste some
> kilo-bytes of local storage. So I think it's necessary to define some
> environment variables like SPE_NO_ARGS so that users can select.
> BTW, is there any specification document about elfspe and/or environment
> variables used by elfspe.

Ah, I didn't realize that these are copied to local storage.

How about simply passing an effective address pointer as the
third argument to main?

If we pass the arguments as

int main(int argc, char *argv[], uint64_t env_ea);

then those applications that really want to access the environment
can do that through DMA.

	Arnd <><



More information about the cbe-oss-dev mailing list