* [9fans] wierd kw errata?
@ 2010-05-06 22:56 erik quanstrom
0 siblings, 0 replies; only message in thread
From: erik quanstrom @ 2010-05-06 22:56 UTC (permalink / raw)
To: 9fans
i finally got some traction on the plumbing problem
i've been seeing on kw. but now i'm stumped.
perhaps there is something obvious that i am missing.
here's the original problem. this only is observable on kw,
as far as i know:
mkdir /tmp/2.6 && cd /tmp && acme
b3 on 2.6, directory does not open.
in /sys/src/cmd/acme/look.c:/^look3.c if i add
fn1("");
right before Return:, the problem goes away. if i
add
fn0();
the problem remains. the definitions are
void
fn0(void)
{
}
void
fn1(char*)
{
}
i think i've ruled out a timing or proc restore problem
because a call to sleep(100) from fn0 doesn't change
anything.
but this is really a strange problem, since openfile()
should have already run! somehow code run later
seems to change the result.
the assembly in question is (works)
look3+0x2dc 0x0001265c BL openfile
look3+0x2e0 0x00012660 MOVW $#0x471b1,R0
look3+0x2e4 0x00012664 BL fn1
look3+0x2e8 0x00012668 B look3+0x1b0
or (doesn't work)
look3+0x2dc 0x0001265c BL openfile
look3+0x2e0 0x00012660 BL fn0
look3+0x2e4 0x00012664 B look3+0x1b0
ideas?
- erik
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-06 22:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-06 22:56 [9fans] wierd kw errata? erik quanstrom
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).