Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Just playing with an idea here but would anyone find any use in a patch that adds options to Bochs so to enable "quirky" behavior?
I've been perusing the forums and studying Linux's source a little and a quirk that I can use as an example is when E820 wipes %ebx even though it's not signalling an error or the completion of the memory map.
I personally feel it'd be useful to be able to test against various quirks.
If enough people are interested, I'll do some work to add those options
But you may not need to patch Bochs itself. All you would really need is a modified BIOS. I'm pretty sure that bochs will let you swap out the BIOS in the configuration settings.
Good idea tho.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
Actually, now that I think about it... would it not be simple just to implement a small proxy that hooks the interrupt that you want to mess with? TSRs and stuff did it all the time back in the day.
Like, create a vector that checks whether it's time to do something stupid otherwise just pass the call directly to the "real" E820?
In fact, I don't know. I just remembered that bewing (one of the Bochs developers) was working on it, so I did a [url=forum.osdev.org/search.php?st=0&sk=t&sd=d&sr=posts&keywords=rebochs]search[/url], but the last post is already more than a year old.