Real-mode interrupts in pmode

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
Khumba

Real-mode interrupts in pmode

Post by Khumba »

Hello, I was wondering if I could get my pmode kernel to use real-mode interrupts if I preserved the locations of the few interrupts I need (10, 13, 16) and loaded them to my IDT. Is this possible?
Khumba

RE:Real-mode interrupts in pmode

Post by Khumba »

As long as I put my kernel above the standard 640KB?
carbonBased

RE:Real-mode interrupts in pmode

Post by carbonBased »

Nope.

You _cannot_ run real-mode code in protected mode, period (well... some code will work (eg, port IO)).

Real-mode code relys on a completely different segmentation model then protected mode.

What you can do is save the real-mode IDT, and map it into a v86 mode task, then perform your ints and return the values on the stack.

Jeff
Khumba

RE:Real-mode interrupts in pmode

Post by Khumba »

Ok, thanks!
Post Reply