From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] kernel kqemu and interrupt handler
Date: Sat, 26 Apr 2008 02:00:08 +0100 [thread overview]
Message-ID: <20080426010007.GB4792@implementation> (raw)
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
reply other threads:[~2008-04-26 1:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080426010007.GB4792@implementation \
--to=samuel.thibault@ens-lyon.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.