qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] kernel kqemu and interrupt handler
@ 2008-04-26  1:00 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-04-26  1:00 UTC (permalink / raw)
  To: qemu-devel

Hello,

I'm trying to make GNU Mach work with -kernel-kqemu, and the only
problem I'm having is with IRQ handling while from kernel context: the
handler roughly does

entry:
	cld
	pushl %ds
	pushl %es
	pushl %fs
	pushl %gs
	etc. call handler
	popl %gs
	popl %fs
	popl %es
	popl %ds

I get a General protection fault on popl %gs.  Looking at the stack
shows me that pushl %gs has pushed 0x13 instead of 0x10.  While I
understand why this is so (we're running in CPL 3 anyway), I wonder how
this is supposed to work, and even more, how linux works (since it
roughly does the same)...

Samuel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-26  1:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-26  1:00 [Qemu-devel] kernel kqemu and interrupt handler Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).