From: erik quanstrom <quanstro@quanstro.net>
To: yarikos@gmail.com, 9fans@9fans.net
Subject: Re: [9fans] xen3: fresh build 9xenpccpuf dies on boot
Date: Thu, 12 Sep 2013 09:54:32 -0400 [thread overview]
Message-ID: <00a9ef8424986e88297b5d4f751e7057@brasstown.quanstro.net> (raw)
In-Reply-To: <CAG3N4d-65YzBPxx9LsEWgbUZpf0cNBN7qcRYgheaRZdup9KmGw@mail.gmail.com>
On Thu Sep 12 09:49:19 EDT 2013, yarikos@gmail.com wrote:
> > The crash seems to be in init, not the kernel. Are you sure
> > your file system image is good?
>
> it doesn't get far enough for "root from:", so it seems to fail
> somewhere in the initcode blob
this may be related to the change put in for the routerboard.
it increased the size of Tos, and thus shifted everything around
on the stack. but the old pc kernel didn't account for this, and
386 kernels failed with bad arg in syscall. this never affected the
pae kernel, or the other architectures. here's the fix as it went
into 9atom.
; 9fs atom
; cd /n/atom/plan9/sys/src/9/pc
; history -D main.c
Aug 3 15:30:45 EDT 2013 main.c 16439 [quanstro]
Aug 3 15:30:45 EDT 2013 /n/atomdump/2013/0912/plan9/sys/src/9/pc/main.c 16439 [quanstro]
10a11
> #include <tos.h>
25a27,31
> enum {
> /* space for syscall args, return PC, top-of-stack struct */
> Ustkheadroom = sizeof(Sargs) + sizeof(uintptr) + sizeof(Tos),
> };
>
294c300
< sp = (uchar*)base + BY2PG - MAXSYSARG*BY2WD;
---
> sp = (uchar*)base + BY2PG - Ustkheadroom;
- erik
next prev parent reply other threads:[~2013-09-12 13:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-12 7:44 Yaroslav
2013-09-12 8:04 ` Richard Miller
2013-09-12 13:48 ` Yaroslav
2013-09-12 13:54 ` erik quanstrom [this message]
2013-09-13 8:16 ` Yaroslav
2013-09-13 20:28 ` Richard Miller
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=00a9ef8424986e88297b5d4f751e7057@brasstown.quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
--cc=yarikos@gmail.com \
/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).