From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKSCD-0005Ih-KJ for qemu-devel@nongnu.org; Tue, 05 Jul 2016 11:23:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKSC9-000875-Js for qemu-devel@nongnu.org; Tue, 05 Jul 2016 11:23:33 -0400 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:35724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKSC9-00086q-Br for qemu-devel@nongnu.org; Tue, 05 Jul 2016 11:23:29 -0400 Received: by mail-qk0-x242.google.com with SMTP id l185so1932728qkd.2 for ; Tue, 05 Jul 2016 08:23:29 -0700 (PDT) Date: Tue, 5 Jul 2016 11:23:26 -0400 From: Kevin O'Connor Message-ID: <20160705152326.GA7527@morn.lan> References: <1467664794-31002-1-git-send-email-kraxel@redhat.com> <1467664794-31002-4-git-send-email-kraxel@redhat.com> <20160705143041.GB2939@morn.lan> <1467731228.12358.45.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1467731228.12358.45.camel@redhat.com> Subject: Re: [Qemu-devel] [SeaBIOS] [PATCH 3/3] add serial console support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: seabios@seabios.org, qemu-devel@nongnu.org On Tue, Jul 05, 2016 at 05:07:08PM +0200, Gerd Hoffmann wrote: > I also hacked up a patch to send output to both vga + serial: > > https://www.kraxel.org/cgit/seabios/commit/?h=serial&id=3afd7b8bb96126b00989f3ae09f451bbec4f00f7 > > Not working stable though, seems to corrupt memory, not sure why. > I'm storing the vgabios int10 vector at 0x5f, then chain-call into > vgabios via "int 5f" instruction. Anything obviously wrong with that? Not sure why it isn't working. Take a look at vgaentry.S:entry_timer_hook and vgainit.c:hook_timer_irq() though. That shows a working example of "hooking" an interrupt. As an aside, I think it would be better if save/restoring the BDA cursor position could be avoided. -Kevin