Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/ia64 From scole_mail:



details:   https://anonhg.NetBSD.org/src/rev/0ff670edd793
branches:  trunk
changeset: 345221:0ff670edd793
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 13 13:40:55 2016 +0000

description:
>From scole_mail:
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.

diffstat:

 sys/arch/ia64/ia64/ssc.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f97d9a27ea84 -r 0ff670edd793 sys/arch/ia64/ia64/ssc.c
--- a/sys/arch/ia64/ia64/ssc.c  Fri May 13 13:24:01 2016 +0000
+++ b/sys/arch/ia64/ia64/ssc.c  Fri May 13 13:40:55 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ssc.c,v 1.4 2012/10/27 17:17:57 chs Exp $      */
+/*     $NetBSD: ssc.c,v 1.5 2016/05/13 13:40:55 christos Exp $ */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -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