Hmm, I converted lnfpus to allocate things on the stack, but RTEMS doesn't seem to be happy with this - either the compiler gets stuck or the entire system hangs.
The same code runs fine on Linux and also passes valgrind. The allocations are: 256036 bytes for struct sched_ctx and 2592 bytes for the struct vm_reg array. Does the compiler run in the "GUI" task, which has about 1 MB of stack, or somewhere else ? > Easy, just use the "build_demo.sh" script in the SoC sources. Thanks ! I ran the last step from that script and, while complaining about calloc not being declared, the build succeeded. (Didn't yield a working binary, though, perhaps because I just let it pick the other elements from the SDK, instead of building everything with build_demo.sh.) I see an okay-looking malloc family in libbase/malloc.c. So I wonder if all this hacking around calloc is really necessary ? - Werner _______________________________________________ http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org IRC: #milkymist@Freenode
