Subject: Re: New-and-improved snapshot available
To: None <port-sgimips@netbsd.org>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: port-sgimips
Date: 09/06/2003 14:00:18
Hi!
# sorry, it subscribed now.
Christopher SEKIYA Wrote:
> * no pretense of an ARCS console on ip32.
What meaning is it?
Is it related to the following ?
----
PROM monitor:
> printenv ConsoleOut
ConsoleOut=video()
> boot -f bootp():/netbsd
:
snip
:
biomask 07 netmask 07 ttymask 07 clockmask 87
boot device: <unknown>
HUNG UP and reboot!!!
if _splnone() is commented out. (in cpu_configure())
----
> boot -f bootp():/netbsd
:
snip
:
biomask 07 netmask 07 ttymask 07 clockmask 87
boot device: <unknown>
root on md0a dumps on md0b
WARNING: clock gained 8 days -- CHECK AND RESET THE DATE!
root file system type: ffs
Sep 6 04:14:05 init: /etc/pwd.db: No such file or directory
HUNG UP and reboot!!!
Cause It is printf().
If it outputs to an ARCS console, has interruption occurred?
# kernel is high priority (commented out _splnone()).
# init is default priority
> * real r10k support, verified to be 99.(44/100) working.
sorry. forget calculation of L2 cache size... :-)
----
mips4_get_cache_config(int csizebase)
{
uint32_t config = mips3_cp0_config_read();
mips_picache_size = MIPS4_CONFIG_CACHE_SIZE(config,
MIPS4_CONFIG_IC_MASK, csizebase, MIPS4_CONFIG_IC_SHIFT);
mips_picache_line_size = 64; /* 64 Byte */
mips_pdcache_size = MIPS4_CONFIG_CACHE_SIZE(config,
MIPS4_CONFIG_DC_MASK, csizebase, MIPS4_CONFIG_DC_SHIFT);
mips_pdcache_line_size = 32; /* 32 Byte */
mips_cache_alias_mask =
((mips_pdcache_size / mips_pdcache_ways) - 1) & ~(PAGE_SIZE - 1);
mips_cache_prefer_mask =
max(mips_pdcache_size, mips_picache_size) - 1;
+ mips_sdcache_size =
+ MIPS4_CONFIG_CACHE_SIZE(config, MIPS4_CONFIG_SS_MASK,
+ MIPS4_CONFIG_CACHE_L2_BASE, MIPS4_CONFIG_SS_SHIFT);
mips_sdcache_line_size = MIPS4_CONFIG_CACHE_L2_LSIZE(config);
}
----
--
kiyohara