qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] sparc64: use pci_mem_base


From: Igor Kovalenko
Subject: [Qemu-devel] [PATCH] sparc64: use pci_mem_base
Date: Wed, 17 Jun 2009 03:00:19 +0400

ultrasparc II maps pci memory space at offset 0x1ff00000000
(or another large offset, depending on cpu type) so we need to
provide offset for e.g. vga to map it's video memory there.
Currently video memory shows up in the area used by sparc silo
boot loader to store kernel and initrd, which leads to corrupted
memory and funny video patterns around kernel panic traces.

Fortunately there exists global pci_mem_base variable which
is used by pci_to_cpu_addr() but it seems to be only called
while clearing pci memory mapping.

This patch adds missing translation call to pci_update_mappings()
and initializes pci_mem_base to 0 by default. Then sun4u sets
required pci memory space offset using pci_mem_base.

PCIMapIORegionFunc parameter addr type changed to
target_phys_addr_t and all uses changed accordingly, including
printf parameter in e1000.c

Signed-off-by: Igor V. Kovalenko <address@hidden>

-- 
Kind regards,
Igor V. Kovalenko

Attachment: sparc64-pci-space.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]