9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ron minnich <rminnich@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Cc: lucio@proxima.alt.za
Subject: Re: [9fans] 9VX failure
Date: Sat, 11 Sep 2010 13:25:51 -0700	[thread overview]
Message-ID: <AANLkTi=kGBpwKPdUGqF5Hk73pMq-35UOtjOBQ3OfmGEa@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimebLNk4jshD=wLyH_3Y5AeoJje8G0E_JPcVSiR@mail.gmail.com>

Try 2. sorry.

Thanks again to charles for finding that CLD issue.

ron

hg diff
diff -r c7e9b5edb8d4 src/9vx/main.c
--- a/src/9vx/main.c    Sun Dec 27 09:49:22 2009 -0800
+++ b/src/9vx/main.c    Fri Sep 03 16:58:16 2010 +0100
@@ -55,6 +55,7 @@

 static void    bootinit(void);
 static void    siginit(void);
+static void machkeyinit(void);

 static char*   getuser(void);
 static char*   findroot(void);
@@ -80,6 +81,9 @@
       char buf[1024];

       /* Minimal set up to make print work. */
+#ifndef TLS
+       machkeyinit();
+#endif
       setmach(&mach0);
       coherence = nop;
       quotefmtinstall();
@@ -695,9 +699,6 @@
 void
 mach0init(void)
 {
-#ifndef TLS
-       machkeyinit();
-#endif

       conf.nmach = 1;
       machinit();     /* common per-processor init */
diff -r c7e9b5edb8d4 src/9vx/sched.c
--- a/src/9vx/sched.c   Sun Dec 27 09:49:22 2009 -0800
+++ b/src/9vx/sched.c   Fri Sep 03 16:58:16 2010 +0100
@@ -158,6 +158,8 @@
                       m->machno, p->pid, p->text, kprocq.n, nrunproc);
       unlock(&kprocq.lk);
       punlock(&run);
+       while(p->mach != nil)
+               sched_yield();
       return p;
 }

diff -r c7e9b5edb8d4 src/Makefrag
--- a/src/Makefrag      Sun Dec 27 09:49:22 2009 -0800
+++ b/src/Makefrag      Fri Sep 03 16:58:16 2010 +0100
@@ -1,7 +1,7 @@
 # Main top-level makefile fragment for the vx32 virtual machine.

 # Compiler flags common to both host and VX32 environment files.
-COMMON_CFLAGS = -g -O3 -MD -std=gnu99 -I. $(CFLAGS)
+COMMON_CFLAGS = -g -O2 -MD -std=gnu99 -I. -fno-stack-protector $(CFLAGS)
 #COMMON_CFLAGS = -g -MD -std=gnu99 -I. $(CFLAGS)
 COMMON_LDFLAGS = -g -L. $(LDFLAGS)

diff -r c7e9b5edb8d4 src/libvx32/run32.S
--- a/src/libvx32/run32.S       Sun Dec 27 09:49:22 2009 -0800
+++ b/src/libvx32/run32.S       Fri Sep 03 16:58:16 2010 +0100
@@ -111,6 +111,7 @@
       popl    %edi
       popl    %esi
       popl    %ebx
+       cld
       ret


@@ -128,6 +129,8 @@
       // (DS/ES/SS were already restored by vxrun_return.)
       movw    VXEMU_HOST_VS(%eax),VSEG

+       cld
+
       ret

 // Don't put anything here!



      reply	other threads:[~2010-09-11 20:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-11  7:02 Lucio De Re
2010-09-11  7:14 ` Lucio De Re
2010-09-11 16:34   ` ron minnich
2010-09-11 17:18     ` Lucio De Re
2010-09-11 17:24       ` ron minnich
2010-09-11 17:38         ` Lucio De Re
2010-09-11 17:46           ` Devon H. O'Dell
2010-09-11 18:14             ` Lucio De Re
2010-09-11 19:02               ` yy
2010-09-11 20:25                 ` ron minnich
2010-09-11 20:25                   ` ron minnich [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=kGBpwKPdUGqF5Hk73pMq-35UOtjOBQ3OfmGEa@mail.gmail.com' \
    --to=rminnich@gmail.com \
    --cc=9fans@9fans.net \
    --cc=lucio@proxima.alt.za \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).