Source-Changes-D archive

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

Re: CVS commit: src/sys/arch/pmax/stand/common



> On Thu Nov 25 2010 at 14:05:28 +0000, Izumi Tsutsui wrote:
> > Module Name:        src
> > Committed By:       tsutsui
> > Date:               Thu Nov 25 14:05:28 UTC 2010
> > 
> > Modified Files:
> >     src/sys/arch/pmax/stand/common: startprog.S
> > 
> > Log Message:
> > Fix botch on mips64 merge:
> >  - use correct offsets to pass args to loaded kernel in __mips_o32 case
> > 
> > Now NetBSD/pmax kernel properly boots, but init(8) still doesn't start
> > on GXemul emulating R3000 3MAX.
> 
> One remaining problem (which was debugged by Alessandro Forin) is that
> the post-mips64 brk/sbrk syscall stubs depend on "syscall" retaining t0,
> and the kernel doesn't do that.  I have this in my local tree and it makes
> a mips1 platform boot with new userland.  See if it helps on pmax too:
> 
> --- locore_mips1.S      8 Nov 2010 18:09:38 -0000       1.68
> +++ locore_mips1.S      25 Nov 2010 14:15:39 -0000
> @@ -418,7 +418,7 @@ NESTED_NOPROFILE(mips1_SystemCall, CALLF
>         sw      a3, FRAME_A3(k1)
>         lw      a0, CPUVAR(CURLWP)              # 1st arg is curlwp
>         mfhi    v1
> -       #sw     t0, FRAME_T0(k1)                # no need to save temp regs
> +       sw      t0, FRAME_T0(k1)                # no need to save temp regs

Yeah, it works with 201011170000Z snapshot binaries. Thanks.

But should we rather fix syscall stubs?
---
Izumi Tsutsui


---
NetBSD/pmax 5.99.39 FFS Primary Bootstrap

NetBSD/pmax 5.99.39 Secondary Bootstrap, Revision 1.5
(tsutsui@mirage, Thu Nov 25 22:22:23 JST 2010)

Boot: 5/rz0/
Loading: 5/rz0/netbsd.pmax
open 5/rz0/netbsd.pmax: No such file or directory
Loading: 5/rz0/netbsd
3538000+120424 [218064+207371]=0x3e5724
Starting at 0x80030000

segment  0 start 00000000 size 04000000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    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 5.99.39 (GENERIC) #107: Thu Nov 25 23:28:21 JST 2010
        tsutsui@mirage:/usr/src/sys/arch/pmax/compile/GENERIC
DECstation 5000/200 (3MAX)
total memory = 65536 KB
avail memory = 59712 KB
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000 CPU (0x220) Rev. 2.0 with MIPS R3010 FPC Rev. 4.0
cpu0: 4KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 4KB/4B direct-mapped write-through Data cache
tc0 at mainbus0: 25 MHz clock
ibus0 at tc0 slot 7 offset 0x0
mcclock0 at ibus0 addr 0x1fe80000: mc146818 or compatible
dz0 at ibus0 addr 0x1fe00000: DC-7085, 4 lines
lkkbd0 at dz0 line 0
wskbd0 at lkkbd0 mux 1
vsms0 at dz0 line 1
wsmouse0 at vsms0 mux 0
le0 at tc0 slot 6 offset 0x0: address 10:20:30:00:00:10
le0: 32 receive buffers, 8 transmit buffers
asc0 at tc0 slot 5 offset 0x0: NCR53C94, 25MHz, SCSI ID 7
scsibus0 at asc0: 8 targets, 8 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 0 lun 0: <DEC, RZ58     (C) DEC, 2000> disk fixed
sd0: 1024 MB, 1024 cyl, 16 head, 128 sec, 512 bytes/sect x 2097153 sectors
sd0: async, 8-bit transfers
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
pid 1(init): ABI set to O32 (e_flags=0x1007)
Fri Nov 26 14:34:07 UTC 2010
Starting root file system check:
/dev/rsd0a: file system is clean; not checking
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 0 -> 0
Starting network.
/etc/rc: WARNING: $hostname not set.
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Building databases: dev, utmp, utmpx, services done
Starting syslogd.
Mounting all filesystems...
Clearing temporary files.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Checking for core dump...
savecore: no core dump
Starting local daemons:.
Updating motd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
newaliases: warning: valid_hostname: empty hostname
newaliases: fatal: unable to use my own hostname
Nov 26 14:34:15  postfix/sendmail[302]: fatal: unable to use my own hostname
/etc/rc.d/postfix exited with code 1
Starting inetd.
Starting cron.
The following components reported failures:
    /etc/rc.d/postfix
See /var/run/rc.log for more information.
Fri Nov 26 14:34:16 UTC 2010

NetBSD/pmax (Amnesiac) (console)

login: 


Home | Main Index | Thread Index | Old Index