Hey peeps,
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
Quirks
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: Quirks
I think it would be quite useful, for example to see how your kernel behaves in such situations. Voting for it
Re: Quirks
Agreed.
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.
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
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
- max
- Member
- Posts: 616
- Joined: Mon Mar 05, 2012 11:23 am
- Libera.chat IRC: maxdev
- Location: Germany
- Contact:
Re: Quirks
You could maybe even get involved and add it as an activatable standard feature.
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Quirks
Sounds like the "nasty" mode of ReBochs:
http://forum.osdev.org/viewtopic.php?f=2&t=21926
http://forum.osdev.org/viewtopic.php?f=15&t=26835
http://forum.osdev.org/viewtopic.php?f=2&t=21926
http://forum.osdev.org/viewtopic.php?f=15&t=26835
Re: Quirks
It's true, SpyderTL, that I don't necessarily need to make alterations to Bochs itself in order to have some kind of kirks mode.
But! I feel that doing so and presenting some kind of option to disable support for some BIOS call would be easier to use.
That and messing with SeaBIOS directly scares the hell out of me
XenOS, how far along is ReBochs?
~K
But! I feel that doing so and presenting some kind of option to disable support for some BIOS call would be easier to use.
That and messing with SeaBIOS directly scares the hell out of me
XenOS, how far along is ReBochs?
~K
Re: Quirks
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?
Edit: Or rather, real int 0x15?
~K
Like, create a vector that checks whether it's time to do something stupid otherwise just pass the call directly to the "real" E820?
Edit: Or rather, real int 0x15?
~K
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: Quirks
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.elderK wrote:XenOS, how far along is ReBochs?