<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p>Anyone know if OpenBios works with Sun's Hypervisor (also free software) on it's Niagara servers?
<br>
<br>Wondering if it's feasible to use this for vga bios emulation for 3d graphics support with Gentoo linux?
<br>
<br>Cheers,
<br>
<br>Pete.
<br>
<br>----- Original message -----
<br>> Make sure that we declare the same range available as set by the
<br>> virtual-dma properties hardcoded in sabre_configure().
<br>>
<br>> This register is checked by FreeBSD during boot which panics if it finds
<br>> a default (zero) value.
<br>>
<br>> Signed-off-by: Mark Cave-Ayland <<a href="mailto:mark.cave-ayland@ilande.co.uk">mark.cave-ayland@ilande.co.uk</a>>
<br>> ---
<br>> openbios-devel/arch/sparc64/openbios.c | 18 ++++++++++++++++++
<br>> 1 file changed, 18 insertions(+)
<br>>
<br>> diff --git a/openbios-devel/arch/sparc64/openbios.c
<br>> b/openbios-devel/arch/sparc64/openbios.c index 9cc1ac2..3a36146 100644
<br>> --- a/openbios-devel/arch/sparc64/openbios.c
<br>> +++ b/openbios-devel/arch/sparc64/openbios.c
<br>> @@ -116,6 +116,20 @@ sparc64_reset_all(void)
<br>> : : "r" (val), "r" (addr) : "memory");
<br>> }
<br>>
<br>> +/* PCI Target Address Space Register (see UltraSPARC IIi User's Manual
<br>> + section 19.3.0.4) */
<br>> +#define PBM_PCI_TARGET_AS 0x2028
<br>> +#define PBM_PCI_TARGET_AS_CD_ENABLE 0x40
<br>> +
<br>> +static void
<br>> +sparc64_set_tas_register(unsigned long val)
<br>> +{
<br>> + unsigned long addr = APB_SPECIAL_BASE + PBM_PCI_TARGET_AS;
<br>> +
<br>> + asm("stxa %0, [%1] 0x15\n\t"
<br>> + : : "r" (val), "r" (addr) : "memory");
<br>> +}
<br>> +
<br>> static void cpu_generic_init(const struct cpudef *cpu, uint32_t
<br>> clock_frequency) {
<br>> unsigned long iu_version;
<br>> @@ -574,6 +588,10 @@ arch_init( void )
<br>> modules_init();
<br>> #ifdef CONFIG_DRIVER_PCI
<br>> ob_pci_init();
<br>> +
<br>> + /* Set TAS register to match the virtual-dma properties
<br>> + set during sabre configure */
<br>> + sparc64_set_tas_register(PBM_PCI_TARGET_AS_CD_ENABLE);
<br>> #endif
<br>> nvconf_init();
<br>> device_end();
<br>> --
<br>> 1.7.10.4
<br>>
<br>>
<br>> --
<br>> OpenBIOS <a href="http://openbios.org/">http://openbios.org/</a>
<br>> Mailinglist: <a href="http://lists.openbios.org/mailman/listinfo">http://lists.openbios.org/mailman/listinfo</a>
<br>> Free your System - May the Forth be with you
<br><br></p>
</body>
</html>