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: martin%NetBSD.org@localhost
Subject: Re: pkg/51103: Updates for ski emulator
Date: Thu, 12 May 2016 20:26:10 -0400

 So here is a patch to get basic ski console output working.  The ski
 simulator was decoding the wrong registers in ssccnputc() due to
 automagically inlined ssc() which contains a "break" simulated system
 call.
 
 The ski loader "skiload" has almost exactly the same inline assembly
 call for ssc(), but for whatever reason, (maybe ssc() and
 ski_cons_putchar() are in different files?), the ssc() function didn't
 get inlined and I/O worked fine.
 
 If there is a better way to fix, feel free. If I should open another
 PR because this is part of src/ and not pkgsrc/ please let me know.
 
 So with this patch I claim there is enough to say the emulator is
 "working".
 
 Thanks
 
 Index: ssc.c
 ===================================================================
 RCS file: /cvsroot/src/sys/arch/ia64/ia64/ssc.c,v
 retrieving revision 1.4
 diff -b -u -r1.4 ssc.c
 --- ssc.c	27 Oct 2012 17:17:57 -0000	1.4
 +++ ssc.c	13 May 2016 00:03:03 -0000
 @@ -46,6 +46,7 @@
  void ssccnpollc(dev_t, int);
  
  
 +__attribute__ ((noinline))
  uint64_t
  ssc(uint64_t in0, uint64_t in1, uint64_t in2, uint64_t in3, int which)
  {
 


Home | Main Index | Thread Index | Old Index