All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Generating Interrupt 10h (switching from protected mode to real mode)
@ 2006-02-07 16:32 Stas Sergeev
       [not found] ` <00f801c62c72$2dcfba00$6501a8c0@brianx>
  0 siblings, 1 reply; 3+ messages in thread
From: Stas Sergeev @ 2006-02-07 16:32 UTC (permalink / raw)
  To: Vishal Soni; +Cc: Linux MSDOS

Hello.

Vishal Soni wrote:
> like i am doing below in my sample driver for linux.
[]
> Could anyone please
> brief me the steps or the sample code or any pointers to do the
> same.i.e how do we save processor context and then achieve the same by
> vm86() system call.
Sample of the kernel driver:
http://dev.gentoo.org/~spock/projects/vesafb-tng/archive/vesafb-tng-1.0-rc1-r3-2.6.15-rc1.patch

Userspace interface:
http://sourceforge.net/projects/lrmi

hth.

ps: this list is about a dosemu, the user-space PC/DOS emulator, not
about the vm86 usage in general.


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Generating Interrupt 10h (switching from protected mode to real mode)
@ 2006-02-07  9:01 Vishal Soni
  0 siblings, 0 replies; 3+ messages in thread
From: Vishal Soni @ 2006-02-07  9:01 UTC (permalink / raw)
  To: Linux MSDOS

Hello,

I need to understand BIOS Function Calls specifically INT 10H BIOS
interrupt, which i can generate by switching from protected mode to
real mode.

like i am doing below in my sample driver for linux.
asm("mov $13h, %AX");
asm("INT 10h);
But this was giving me floating point exception while doing insmod.

I did more research on this and realised that i need to switch from
Protected mode
to real mode or else real mode interrupt handler, would be replaced
with an appropriate exception handler by Linux. Could anyone please
brief me the steps or the sample code or any pointers to do the
same.i.e how do we save processor context and then achieve the same by
vm86() system call.

Your help would be highly appreciated.
thank you,
Vishal.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-09 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-07 16:32 Generating Interrupt 10h (switching from protected mode to real mode) Stas Sergeev
     [not found] ` <00f801c62c72$2dcfba00$6501a8c0@brianx>
2006-02-09 18:58   ` Illegal user Stas Sergeev
  -- strict thread matches above, loose matches on Subject: below --
2006-02-07  9:01 Generating Interrupt 10h (switching from protected mode to real mode) Vishal Soni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.