9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Suggestion: Programming Tutorial for /sys/doc
Date: Sat,  3 Nov 2007 17:43:48 -0400	[thread overview]
Message-ID: <0a469a01247bdfd65db30fb0e1a51922@quanstro.net> (raw)
In-Reply-To: <e42b9de40711030824x6ae34cb7p47016bdc59c0f8e0@mail.gmail.com>

> The Nov 3rd image didn't work for me.  But, by turning off extended IDE mode
> for my HDD, I was able to get an error message in assembly rather than it
> just hanging without any error message.  (Not sure if that makes it
> irrelevant, but anyway.)
> 
> http://home.earthlink.net/~eldanen/pastes/dmesg
> http://home.earthlink.net/~eldanen/pastes/plan9output
> 
> The following was appended to "plan9output":
> 
> FLAGS=10246 TRAP=0 ENCODE=0 PC=80030089
> AX 00000000 BX 8004483c CX 00000000 DX 00000000
> SI 0000020 DI 00000000 BP 80047e6c
> CS 0010 DS 0008 ES 0008 FS 0008 GS 0008
> CRO 80000011 CR2 00f0c05c CR3 0000c000
> panic: exception/interrupt 0
> 
> Press almost any key to reset...

it didn't print anything else, did it?  the pc indicates that these
lines should have been executed

; acid /n/sources/plan9/386/9loaddebug
/n/sources/plan9/386/9loaddebug:386 plan 9 boot image
/sys/lib/acid/port
/sys/lib/acid/386
acid: src(0x80030089)
/sys/src/boot/pc/ether.c:119

/n/sources/plan9/sys/src/boot/pc/ether.c
108 			print("ether#%d: %s: port 0x%luX irq %lud",
109 				ctlr->ctlrno, ctlr->type, ctlr->port, ctlr->irq);
[...]
118 			ctlr->rb = ialloc(sizeof(RingBuf)*ctlr->nrb, 0);
>119 			if(ctlr->ntb == 0

here's a wild stab in the dark which has bitten us for an embedded
kernel we run.  make sure to turn off legacy emulation for usb devices
in the bios.  (phoenix bios has this option in the second tab under one
of the bottom selections.)  legacy emulation can turn on system management
mode.  system management mode takes over system resources (like memory)
to run the emulation code and then puts things back.  the os is not
supposed to notice, but sometimes the emulation is not seemless.
(or perhaps we don't know all the magic spots in memory.)  either way,
it's worth a shot.

- erik


  reply	other threads:[~2007-11-03 21:43 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-01 20:11 Pietro Gagliardi
2007-11-01 20:23 ` don bailey
2007-11-01 20:47 ` Anthony Sorace
2007-11-01 21:00   ` Pietro Gagliardi
2007-11-01 21:22     ` Federico Benavento
2007-11-02 13:10       ` Iruata Souza
2007-11-02 13:34         ` David Leimbach
2007-11-02 13:39           ` erik quanstrom
2007-11-02 16:44             ` geoff
2007-11-02 18:00               ` erik quanstrom
2007-11-02 19:34                 ` geoff
2007-11-02 20:57                   ` David Leimbach
2007-11-03  2:44                 ` Gorka Guardiola
2007-11-03  8:49                   ` Sander van Dijk
2007-11-03 15:24                     ` Eldanen
2007-11-03 21:43                       ` erik quanstrom [this message]
2007-11-03 23:40                         ` Eldanen
2007-11-06 14:39                         ` [9fans] Font Michaelian Ennis
2007-11-06 14:46                           ` Anant Narayanan
2007-11-06 14:50                             ` erik quanstrom
2007-11-07 18:12                               ` Michaelian Ennis
2007-11-06 14:56                           ` Martin Neubauer
2007-11-05 11:59                     ` [9fans] Suggestion: Programming Tutorial for /sys/doc Gorka Guardiola
2007-11-02 18:09             ` David Leimbach
2007-11-02 18:47         ` Pietro Gagliardi
2007-11-02 20:11           ` Iruata Souza
2007-11-02 18:52         ` Pietro Gagliardi
2007-11-01 21:27     ` Uriel
2007-11-02  1:44     ` Anthony Sorace
2007-11-02  7:53       ` Uriel
2007-11-01 21:24 ` ISHWAR RATTAN
2007-11-02  3:07 ` Joel C. Salomon
2007-11-02  8:19 ` fernanbolando
2007-11-02 10:03   ` roger peppe
2007-11-02 13:07     ` Eric Van Hensbergen
2007-11-02 12:42   ` erik quanstrom
2007-11-02 15:39 ` Douglas A. Gwyn
2007-11-02 19:12 ` Anant Narayanan
2007-11-02 19:44   ` Pietro Gagliardi

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=0a469a01247bdfd65db30fb0e1a51922@quanstro.net \
    --to=quanstro@quanstro.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).