: At present it gets as far as mounting the 'hard disk' and loading 'init' and
: then it falls over in a big heap. I suspect the kernel stack is a little
: screwed as this version has the psion 'stack/data/bss/heap' sequence.
:
Having just perused alot of ELKS kernel code lately, your
problem may be in the way that ELKS assumes argv and environ are
loaded. That is, they're copied *above* the stack, at the top of the allocated
memory. This could be right in the middle of your new heap. Also, init
uses a different mechanism for setting the char *environ....
Greg