9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Re: Kernel failure - i486
Date: Thu, 22 Jan 2004 12:52:26 +0000	[thread overview]
Message-ID: <56180b256fc8cc8d05e5b24091071cbf@terzarima.net> (raw)
In-Reply-To: <20040122135242.B28365@cackle.proxima.alt.za>

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

it's blowing up on RDTSC in l.s:/^cycles

cycles works only if m->havetsc is non-zero, and thus it's used in /sys/src/9/pc
with
	if(m->havetsc)
		cycles(...);
but now it's used in port (which is the call i think is failing)

../port/sysproc.c:	cycles((uvlong*)&tos->pcycles);

without the check.  could make port code check m->havetsc and require
all Mach to include that too, but i wonder whether it wouldn't be simpler to have
void (*cycles)(uvlong*) in pc/fns.h and have x86 processors that don't support it set
cycles to point to  a function zero the uvlong, and x86 processors that do support
it point to the existing code.  architectures where they manage to make their processors largely
the same can just define void cycles(uvlong*), and be done with it.
i'd have thought that zero'ing the vlong might be good anyway to avoid
calculating using rubbish on the stack when the processor doesn't support it.

[-- Attachment #2: Type: message/rfc822, Size: 2898 bytes --]

From: Lucio De Re <lucio@proxima.alt.za>
To: 9fans mailing list <9fans@cse.psu.edu>
Subject: [9fans] Re: Kernel failure - i486
Date: Thu, 22 Jan 2004 13:52:42 +0200
Message-ID: <20040122135242.B28365@cackle.proxima.alt.za>

Hum!

On Thu, Jan 22, 2004 at 01:47:21PM +0200, Lucio De Re wrote:
>
> dev A0 port 1F0 config 045A capabilities 0B00 mwdma 0103
> found 9tickle.gz
> .gz....................................................................537209 => 630869+621192+107172=1359233
> entry: 80100020
> Plan 9
> cpu0: 23MHz GenuineIntel 486SX (cpuid: AX 0x0423 DX 0x0002)
> #l0: err=0x8801

I forgot that Plan 9 isn't ever happy _without_ an ethernet adapter
when trying to access its fileserver over a network.  Seems to me this
time the PCNet adapter didn't load at all.

I'll have to get digging...

++L

  reply	other threads:[~2004-01-22 12:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 11:47 [9fans] " Lucio De Re
2004-01-22 11:52 ` [9fans] " Lucio De Re
2004-01-22 12:52   ` Charles Forsyth [this message]
2004-01-22 12:56     ` Charles Forsyth
2004-01-22 13:54     ` Lucio De Re

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=56180b256fc8cc8d05e5b24091071cbf@terzarima.net \
    --to=forsyth@terzarima.net \
    --cc=9fans@cse.psu.edu \
    /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).