Me, Operating Systems, Technology, Sun Microsystems and Stuff!

MouthOS gains a RSOD as France Approaches…

I’ve not had much chance recently to work on MouthOS or to write anything on my blog as I’ve been busy getting prepared for my trip to France at the end of the month. However, I’ve now finally booked my Euro Star tickets (at a very reasonable price of 49.00 return) and my hotel - “Hotel De L’exposition - Tour Eiffel”.

With this done I’ve spent some time this weekend working on MouthOS and I’ve made some excellent progress. I’ve written a new printf function which complies with the ANSI C standard (which also included implementing variable length argument function macros). I’ve also managed to get MouthOS to identify how much RAM a system has - putting me well on the way to finishing my memory manager.

However, the highlight has got to be the new “RSOD” or Red Screen of Death! Since I’ve now got a good printf I was able to start printing out the status of the CPU registers etc, and this has lead to the ability to add a lot of debug information to my panic() function…

MouthOS Red Screen of Death

Don’t worry folks - you shouldn’t see this too often. Also it should be noted that the exception was caused by a deliberate division by zero at the end of main() to test the panic function… I’m not that bad a coder - honestly!

	printf("\n   --> Low Memory:   %iK", _LOW_MEM);
	printf("\n   --> High Memory:  %iK\n", _HIGH_MEM);

	int i = 6 / 0;

Anyway, I think it’s time for an episode of ‘Allo ‘Allo before bed.

Leave a Reply