Change the default stack size from 8192 bytes to 32768.
Change the default stack size from 8192 bytes to 32768.

Simply put, the old value would make it so that you could not safely ever open any files in a thread. The fs_open() function (and its child calls) would end up creating a stack frame that was more than 8192 bytes in size, which would mean that random other malloc'd blocks end up getting written over. This lead to all kinds of random bugs that were quite hard to trace, until I narrowed it down to calling fs_open as breaking things. I'm actually really surprised that nobody noticed this before...

Make sure that you completely rebuild KOS after updating to this revision (make clean all).



DreamcastSDK/kos,DreamcastSDK/kos,DreamcastSDK/kos