Before I can fully test the Memory Manager, I'm writing the memdmp() function to display a section of memory on the kprintf console. Unfortunately this means working out more of an implementation of printf than I had bothered before.
In a way, this is a good thing because it's the one part of the my OS that, until now, was not written by me and subject to third-party copyright and license.
Also thought, I wonder if Bochs can have an additional output stream that I could (ab)use to give me the kernel output on a separate stream/window. I could make the OS output it through the serial port, which I guess a real machine would use.
Another thought I had earlier, create a macro for malloc when allocating structures. The macro would call a version of malloc that wrote the name and length of the structure somewhere so that memdmp() could display a lot more. Could this be extended to the definition of structs so that the kernel had a table of all the fields in each struct so knew how to interpret "all" the data in memory?
No comments:
Post a Comment