[tyndur-devel] [PATCH] kernel2: erkennung von vm86 tasks im exception handler
Andreas Freimuth ·
! vm86: das flag für den vm86 ist Bit 17 nicht Bit 1 Signed-off-by: Andreas Freimuth <m.nemo at gmx.net> --- Ich habe keine Ahnung wie ich das testen soll. Ich bin da drübergestolpert, und für mich sieht das nach einem Bug aus. Laut AMD-Manuals ist Bit 1 jedenfals reserved. Vielleicht guckt sich das mal jemand an der sich mit dem VM86-Zeug besser auskennt. src/kernel2/src/interrupts/im.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/kernel2/src/interrupts/im.c b/src/kernel2/src/interrupts/im.c index a342669..e75f817 100644 --- a/src/kernel2/src/interrupts/im.c +++ b/src/kernel2/src/interrupts/im.c @@ -88,7 +88,7 @@ static void handle_exception(interrupt_stack_frame_t* isf, uint8_t int_num) #if CONFIG_ARCH == ARCH_I386 // Pruefen, ob ein VM86-Task die Exception ausgeloest hat // Falls ja lassen wir sie vom VM86-Code behandeln, wenn er kann - if (!(isf->eflags & (1 << 1))) { + if (isf->eflags & (1 << 17)) { if (vm86_exception(isf)) { return; } -- 1.7.4.2