WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Getting a console on the Intel mac / ioremap

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Getting a console on the Intel mac / ioremap
From: Marco Gerards <mgerards@xxxxxxxxx>
Date: Mon, 14 Aug 2006 16:29:52 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 14 Aug 2006 07:24:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1050B6A.63D%Keir.Fraser@xxxxxxxxxxxx> (Keir Fraser's message of "Sun, 13 Aug 2006 17:01:30 +0100")
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-copies-to: mgerards@xxxxxxxxx
References: <C1050B6A.63D%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)
Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> writes:

> On 13/8/06 5:11 pm, "Marco Gerards" <mgerards@xxxxxxxxx> wrote:
>
>>> For now you could add some fixmap entries and use those to map the vga
>>> registers. Alternatively, since you're only doing this at start of day, you
>>> could use some lowmem virtual address to map the registers just for long
>>> enough to reset to vga mode, and then throw away those mappings.
>> 
>> Right.  What would be the right place and method to add these fixmap
>> entries to do this the right way?  I am not yet too familiar with
>> Xen's memory layout.  As I see it, I just have to add something to
>> "enum fixed_addresses" and write code similar to the __acpi_map_table
>> function to get this right.  Am I correct?
>
> Yes, that's right. Remember the numbering is backwards (bigger indexes in
> the enum take you backwards through the virtual address space because fixmap
> grows downwards). If the scheme works out we can maybe find a better place
> for this temporary mapping, but it'll do for now.

This works perfectly for me.  Thanks again!

--
Marco


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel