pkgsrc-Bugs archive

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

Re: pkg/51103: Updates for ski emulator



The following reply was made to PR pkg/51103; it has been noted by GNATS.

From: scole_mail <scole_mail%gmx.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: pkg/51103: Updates for ski emulator
Date: Fri, 6 May 2016 15:29:40 -0400

 Below is another patch that fixes newline/carriage problems for
 ski-fake-xterm with both skiload and netbsd kernel printouts.
 
 I'm getting close to having the ski emulator run a SKI kernel, here is
 a dmesg from the sim.  It seems like there still is an off-by-one bug
 with doSSC system call not decoding args/registers that I don't
 totally understand yet.  I don't know if the problem is a ski or
 kernel issue yet, but with my hack I can get console messages.
 
 By the way, this sim output and real hardware
 (http://gnats.netbsd.org/49717), look like they die at about the same
 place (pmap.c/pmap.h doesn't work).  One thing ski still doesn't do is
 decode source code lines which is probably the next thing to look at
 after doSSC() issues are sorted.
 
 Console: ia64 SKI console
 
 NetBSD/ia64 ia64 SKI boot, Revision 0.1 (Fri May  6 08:30:01 EDT 2016)
 
 
 Type '?' for a list of commands, 'help' for more detailed help.
 OK boot
 8727568+108376+117048 [150964+197184+132624]=0x8e3110
 netbsd entry at 0xe000000004008000
 Entering netbsd at 0xe000000004008000...
 PAL code mapped by the kernel's TR
 PAL Proc at 0xe000000000101790
 SAL Proc at 0xe000000000101890, GP at 0xe0000000001a04b8
 SAL: AP wake-up vector: 0xff
 Platform clock frequency 133338184 Hz
 Processor ratio 11/2, Bus ratio 1/1, ITC ratio 11/2
 MD 0xe0000000001a0060: type 13 pa 0x100000 cnt 0x400
 MD 0xe0000000001a0088: type 7 pa 0x500000 cnt 0x8000
 Descriptor 0xe0000000001a0088 contains kernel
 Loading chunk before kernel: 0x140 / 0x1000
 Loading chunk after kernel: 0x123a / 0x2140
 MD 0xe0000000001a00b0: type 7 pa 0x100000000 cnt 0x4000
 Skipping memory chunk start 0x100000000
 MD 0xe0000000001a00d8: type 12 pa 0xffffc000000 cnt 0x4000
 ptc.e base=0x0, count1=1, count2=1, stride1=0x0, stride2=0x0
 Processor supports 18 Region ID bits
 Trying VHPT size 0x10000
 Putting VHPT at 0xe000000000590000
 vhpt base = e000000000590000 
 vhpt size = 10000 
 Loaded initial symtab at 0xe0000000048928c0, strtab at 0xe0000000048c2b00, # entries 8191
 pmap_reference(0xe000000004853ec0)
 Detected memory  = 134217728 (128 MB)
 Physical memory chunk(s):
 0x0000000000588000 - 0x000000000058ffff, 32768 bytes (2 pages)
 0x00000000006cc000 - 0x0000000003ffffff, 59981824 bytes (3661 pages)
 0x00000000048e8000 - 0x00000000084fffff, 63012864 bytes (3846 pages)
 Total number of segments: vm_nphysseg = 3 
 pmap_reference(0xe000000004853ec0)
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
     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 7.99.29 (GENERIC.SKI) #6: Fri May  6 09:38:57 EDT 2016
         scole@dstar:/home/scole/nbsd/src/sys/arch/ia64/compile/obj/GENERIC.SKI
 total memory = 128 MB
 avail memory = 117 MB
 Warning: no FPSWA package supplied
 Table 'APIC' at 0xe00000000011fa00
 pmap_reference(0xe000000004853ec0)
 pmap_reference(0xe000000004853ec0)
 
 fatal kernel trap (cpu 0):
 
     trap vector = 0x14 (Page Not Present)
     cr.iip      = 0xe0000000040125c0
     cr.ipsr     = 0x1010080a2010 (mfl,ic,dt,dfh,rt,cpl=0,it,ri=0,bn)
     cr.isr      = 0x400000000 (code=0,vector=0,r,ei=0)
     cr.ifa      = 0x68
     curlwp   = 0xe000000004839c80
         pid = 0, comm = system
 
 Stopped in pid 0.1 (system) at  netbsd:cpu_lwp_fork+0x340:      [M0]    ld8 r15=
 r15
 db> bt
 --Kernel Call Trace--
 cpu_lwp_fork(...)
 uvm_lwp_fork(...)
 lwp_create(...)
 kthread_create(...)
 create_idle_lwp(...)
 mi_cpu_attach(...)
 main(...)
 start(...)
 
 
 Index: patch-an
 ===================================================================
 RCS file: /cvsroot/pkgsrc/emulators/ski/patches/patch-an,v
 retrieving revision 1.1.1.1
 diff -b -u -r1.1.1.1 patch-an
 --- patch-an	27 Jul 2011 10:23:50 -0000	1.1.1.1
 +++ patch-an	6 May 2016 19:03:51 -0000
 @@ -1,8 +1,8 @@
 -$NetBSD: patch-an,v 1.1.1.1 2011/07/27 10:23:50 cherry Exp $
 +$NetBSD$
  
  --- src/netbsd/ssc-netbsd.c.orig	2010-11-04 05:01:51.000000000 +0000
 -+++ src/netbsd/ssc-netbsd.c
 -@@ -0,0 +1,463 @@
 ++++ src/netbsd/ssc-netbsd.c	2016-05-06 14:44:42.000000000 -0400
 +@@ -0,0 +1,464 @@
  +/*
  + * Copyright (C) 1995-2007, Hewlett-Packard Development Company, L.P.
  + *
 @@ -103,6 +103,7 @@
  +	tcgetattr(fin, &tios);
  +	saved_tios = tios;
  +	tios.c_lflag &= ~(ICANON|ECHO);
 ++	tios.c_iflag &= ~(ICRNL);	/* do not map CR to NL on input */
  +	tcsetattr(fin, TCSANOW, &tios);
  +	atexit(restore_tios);
  +	fdin = fin;
 
 


Home | Main Index | Thread Index | Old Index