Received: from eggs.gnu.org ([2001:4830:134:3::10]:56077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK6LY-0004x2-C4 for qemu-devel@nongnu.org; Mon, 04 Jul 2016 12:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK6LU-0001D1-6U for qemu-devel@nongnu.org; Mon, 04 Jul 2016 12:03:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK6LU-0001Cg-1X for qemu-devel@nongnu.org; Mon, 04 Jul 2016 12:03:40 -0400 References: <1467370471-20554-1-git-send-email-kraxel@redhat.com> <1467370471-20554-2-git-send-email-kraxel@redhat.com> <20160701154732.GA11200@morn.lan> <1467620195.15123.133.camel@redhat.com> <7c1baeab-b8b0-93d1-a9a2-054dfd92ece0@redhat.com> <1467636384.15123.177.camel@redhat.com> <20160704152648.GA2039@morn.lan> <20160704160006.GA4549@morn.lan> From: Paolo Bonzini Message-ID: Date: Mon, 4 Jul 2016 18:03:30 +0200 MIME-Version: 1.0 In-Reply-To: <20160704160006.GA4549@morn.lan> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH 1/2] serial console, output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin O'Connor , Gerd Hoffmann Cc: seabios@seabios.org, qemu-devel@nongnu.org On 04/07/2016 18:00, Kevin O'Connor wrote: > So, if I read the sgabios code correctly, it allocates a buffer of: > > struct { u8 x, y; char c; } logbuf[256]; > int logbuf_offset; > > Every character sent on the serial port is appended to "logbuf" in > order, wrapping if necessary: logbuf[logbuf_offset++ % 256] = x, y, c. > On a read, it scans backwards from logbuf_offset to find the last > update to that cell. > > Interestingly, it doesn't store the attribute with the character - > it's int1008 handler just returns the last attribute used anywhere on > the screen. > > The code is only used if it is the sole vga code (as opposed to being > used in addition to an existing vgabios). > > Does anyone know where one can find the original svn commit history > for sgabios? Seems the original google code repo is no longer > present. There was no history as far as I remember, mostly a code drop. Paolo