Quirks

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.
Post Reply
User avatar
elderK
Member
Member
Posts: 190
Joined: Mon Dec 11, 2006 10:54 am
Location: Dunedin, New Zealand
Contact:

Quirks

Post by elderK »

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 :)
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: Quirks

Post by max »

I think it would be quite useful, for example to see how your kernel behaves in such situations. Voting for it :P
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Quirks

Post by SpyderTL »

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.
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
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Re: Quirks

Post by max »

You could maybe even get involved and add it as an activatable standard feature. :)
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Quirks

Post by xenos »

Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
User avatar
elderK
Member
Member
Posts: 190
Joined: Mon Dec 11, 2006 10:54 am
Location: Dunedin, New Zealand
Contact:

Re: Quirks

Post by elderK »

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 :P

XenOS, how far along is ReBochs?
~K
User avatar
elderK
Member
Member
Posts: 190
Joined: Mon Dec 11, 2006 10:54 am
Location: Dunedin, New Zealand
Contact:

Re: Quirks

Post by elderK »

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
User avatar
xenos
Member
Member
Posts: 1121
Joined: Thu Aug 11, 2005 11:00 pm
Libera.chat IRC: xenos1984
Location: Tartu, Estonia
Contact:

Re: Quirks

Post by xenos »

elderK wrote:XenOS, how far along is ReBochs?
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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
Post Reply