Subject: Re: dreamcast todr(9) conversion patches to test
To: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
From: Nick Hudson <nick.hudson@dsl.pipex.com>
List: port-dreamcast
Date: 09/05/2006 08:55:11
On Monday 04 September 2006 00:22, Valeriy E. Ushakov wrote:
> Folks, please can someone test the diff that converts dreamcast to the
> MI todr(9) framework.
>
> http://snark.ptc.spbu.ru/~uwe/netbsd/sh3/dc-todr.diff
> http://snark.ptc.spbu.ru/~uwe/netbsd/sh3/g2rtc.c
>
> Precompiled kernel is available as well:
> http://snark.ptc.spbu.ru/~uwe/netbsd/sh3/netbsd-dc.bz2
>
> g2rtc.c - is a new file: arch/dreamcast/dev/g2/g2rtc.c
>
> . a better name?  g2todr?
>
> . is the 20 year offset really into the past?  if my arithmetic is
>   still not that rusty current code seems to imply that 0 value in the
>   registers is 1950-01-01

Seems to work.

Nick

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.99.1 (DC) #1: Tue Sep  5 08:39:13 BST 2006
        
nick@arthur:/usr/obj/dreamcast/usr/src-current/sys/arch/dreamcast/compile/DC
SEGA Dreamcast
total memory = 16384 KB
avail memory = 14032 KB
mainbus0 (root)
cpu0 at mainbus0: HITACHI SH4 198.40 MHz PCLOCK 49.900 MHz
cpu0: 8KB/32B direct-mapped Instruction cache.
cpu0: 16KB/32B direct-mapped Data cache.
cpu0: P0, U0, P3 write-through; P1 write-through
cpu0: full-associative 4 ITLB, 64 UTLB entries
cpu0: multiple virtual storage mode, SQ access: kernel, wired 61
shb0 at mainbus0
scif0 at shb0
scif0: console
maple0 at shb0: SH4 IRL 9
mapleA at maple0 port 0: Keyboard
mkbd0 at mapleA function 6: Japanese keyboard
wskbd0 at mkbd0 mux 1
mapleB at maple0 port 1: Dreamcast Mouse
mms0 at mapleB function 9: SEGA Dreamcast Mouse
mms0: buttons: left middle right
wsmouse0 at mms0 mux 0
mapleC at maple0 port 2: Dreamcast Controller
pvr0 at shb0: 640 x 480, 16bpp, VGA, RGB
wsdisplay0 at pvr0 kbdmux 1
wsmux1: connecting to wsdisplay0
wskbd0: connecting to wsdisplay0
gdrom0 at shb0: SH4 IRL 9
g2bus0 at shb0
g2rtc0 at g2bus0: TOD clock
gapspci0 at g2bus0: SEGA GAPS PCI Bridge
pci0 at gapspci0 bus 0
pci0: memory space enabled
rtk0 at pci0 dev 0 function 0: SEGA Broadband Adapter
rtk0: interrupting at SH4 IRL 11
rtk0: Ethernet address 00:d0:f1:03:4e:c0
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
aica0 at g2bus0: ARM7 Sound Processing Unit
aica0: interrupting at SH4 IRL 9
audio0 at aica0: half duplex
root on rtk0
nfs_boot: trying DHCP/BOOTP
nfs_boot: DHCP next-server: 10.0.0.4
nfs_boot: my_name=dc
nfs_boot: my_addr=10.0.0.5
nfs_boot: my_mask=255.255.255.0
nfs_boot: gateway=10.0.0.1
root on 10.0.0.4:/usr/exports/dc/root
Tue Sep  5 08:42:37 GMT 2006
Checking for botched superblock upgrades: done.
Starting file system checks:
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: dc
IPv6 mode: host
Configuring network interfaces: rtk0.
add net default: gateway 10.0.0.1
Adding interface aliases:
Building databases...
encoding -> uk
Starting syslogd.
Checking for core dump...
savecore: can't find device 3289/573632
Sep  5 08:42:57 dc savecore: can't find device 3289/573632
Setting date via ntp.
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
swapctl: adding /swap as swap device at priority 0
Starting virecover.
Starting local daemons:.
Updating motd.
Starting ntpd.
Starting sshd.
postfix: /etc/mail/aliases.db not present, generating
postalias: fatal: open /etc/mail/aliases: No such file or directory
Sep  5 07:43:17 dc postfix/postalias[367]: fatal: open /etc/mail/aliases: No 
such file or directory
Starting inetd.
Starting cron.
Tue Sep  5 07:43:20 GMT 2006

NetBSD/dreamcast (dc) (console)

login: