9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] more bitsy stuff
@ 2008-03-13 21:14 john
  2008-03-17  9:50 ` [9fans] ARMv6 compiler ? (was: more bitsy stuff) prem
  0 siblings, 1 reply; 9+ messages in thread
From: john @ 2008-03-13 21:14 UTC (permalink / raw)
  To: 9fans

So it turns out that I can build a kernel that will boot Axel's old
paqdisk without a problem, but if I use my own kernel with my own
freshly created paqdisk, I get the crash below:


root is from (paq)[paq]:

paq...paqfs: sysfatal reading block: /dev/flash/ramdisk:

version...panic: boot process died: sys: write on closed pipe pc=0x00006c74

panic: boktrace /kernel/path c0010d28 c011714c c01171a9

ot procc01170f8=c0010d24 ess diec01170fc=c0070aec d: sys:c0117104=c003afe4  write c0117128=c003b044 on clos

ed pipe c0117140=c003b2a8 pc=0x00c0117144=c0010d24 006c74
c0117148=c003b2ac
c0117150=c006d790

c01171b0=c008d610 c01171b4=c008d3bc c01171bc=c008f200 c01171c8=c0078f94

c01171d4=c008d14c c01171d8=c008e37c c01171dc=c008d510 c01171e0=c008d14c

c01171e8=c008d3f8 c01171f4=c008d3bc c01171fc=c008f200 c0117208=c0078f94

c011721c=c008f6c0 c011723c=c006022c c0117248=c006add0 c0117250=c006add8

c011725c=c006d750 c0117274=c00108f8 c0117280=c00790b8 c0117284=c0079594

c01172ac=c0070fc0 c01172b4=c00108dc c01172c8=c0010418 c01172e8=c0008248

c01172f0=c0079594

it's a wonderful day to die

This makes me think that there was perhaps a change in mkpaqfs along
the line?  To look at the error, it seems that there's something wrong
with my ramdisk image; any insights, anyone?  Who has been maintaining
the bitsy stuff?


John



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [9fans] ARMv6 compiler ? (was: more bitsy stuff)
  2008-03-13 21:14 [9fans] more bitsy stuff john
@ 2008-03-17  9:50 ` prem
  2008-03-17 12:39   ` Charles Forsyth
  2008-03-17 17:55   ` [9fans] ARM compiler erik quanstrom
  0 siblings, 2 replies; 9+ messages in thread
From: prem @ 2008-03-17  9:50 UTC (permalink / raw)
  To: 9fans

Hi All,
I am thinking of porting Plan9 to latest ARM cores including v6 and v7
(in my upcoming holidays). I think the compiler is old (pre-v5) though
i am not sure.
could anyone tell me if 5c and friends support v6. if it doesn't how
difficult it is to add it?
Also I have installed latest inferno sources from google svn (on
Linux). is it possible to (cross-)compile plan9 sources on Linux ?

thanks
/Prem

On Mar 14, 2:20 am, j...@csplan9.rit.edu wrote:
> So it turns out that I can build a kernel that will boot Axel's old
> paqdisk without a problem, but if I use my own kernel with my own
> freshly created paqdisk, I get the crash below:
>
> root is from (paq)[paq]:
>
> paq...paqfs: sysfatal reading block: /dev/flash/ramdisk:
>
> version...panic: boot process died: sys: write on closed pipe pc=0x00006c74
>
> panic: boktrace /kernel/path c0010d28 c011714c c01171a9
>
> ot procc01170f8=c0010d24 ess diec01170fc=c0070aec d: sys:c0117104=c003afe4  write c0117128=c003b044 on clos
>
> ed pipe c0117140=c003b2a8 pc=0x00c0117144=c0010d24 006c74
> c0117148=c003b2ac
> c0117150=c006d790
>
> c01171b0=c008d610 c01171b4=c008d3bc c01171bc=c008f200 c01171c8=c0078f94
>
> c01171d4=c008d14c c01171d8=c008e37c c01171dc=c008d510 c01171e0=c008d14c
>
> c01171e8=c008d3f8 c01171f4=c008d3bc c01171fc=c008f200 c0117208=c0078f94
>
> c011721c=c008f6c0 c011723c=c006022c c0117248=c006add0 c0117250=c006add8
>
> c011725c=c006d750 c0117274=c00108f8 c0117280=c00790b8 c0117284=c0079594
>
> c01172ac=c0070fc0 c01172b4=c00108dc c01172c8=c0010418 c01172e8=c0008248
>
> c01172f0=c0079594
>
> it's a wonderful day to die
>
> This makes me think that there was perhaps a change in mkpaqfs along
> the line?  To look at the error, it seems that there's something wrong
> with my ramdisk image; any insights, anyone?  Who has been maintaining
> the bitsy stuff?
>
> John


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARMv6 compiler ? (was: more bitsy stuff)
  2008-03-17  9:50 ` [9fans] ARMv6 compiler ? (was: more bitsy stuff) prem
@ 2008-03-17 12:39   ` Charles Forsyth
  2008-03-17 17:55   ` [9fans] ARM compiler erik quanstrom
  1 sibling, 0 replies; 9+ messages in thread
From: Charles Forsyth @ 2008-03-17 12:39 UTC (permalink / raw)
  To: 9fans

>is it possible to (cross-)compile plan9 sources on Linux ?

i did that for Solaris years ago. the compilers are the easy bit; you
also need to modify mkfiles to add a root variable.  (it was 8 years ago
and i can't remember many details.)  for Linux, now, you're probably
better off if you can get THNX going, which makes plan 9 run as a guest under Linux.
better still is just to build or borrow a cheap machine and run Plan 9 on it.

i'll need to look at the chart, if i can find one, that gives the differences between the
various arm stages.  until the most recent revisions with FP i didn't think there was much
of interest to add to the compiler, from C's point of view.  (the compiler does generate the old FP.)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARM compiler
  2008-03-17  9:50 ` [9fans] ARMv6 compiler ? (was: more bitsy stuff) prem
  2008-03-17 12:39   ` Charles Forsyth
@ 2008-03-17 17:55   ` erik quanstrom
  2008-03-17 21:46     ` Richard Miller
  1 sibling, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2008-03-17 17:55 UTC (permalink / raw)
  To: 9fans

speaking of arm:

does the compiler emit conditional instructions
like subgt?

- erik



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARM compiler
  2008-03-17 17:55   ` [9fans] ARM compiler erik quanstrom
@ 2008-03-17 21:46     ` Richard Miller
  2008-03-17 22:28       ` Rob Pike
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Miller @ 2008-03-17 21:46 UTC (permalink / raw)
  To: 9fans

> speaking of arm:
>
> does the compiler emit conditional instructions
> like subgt?

term% cat t.c
int
f(int x)
{
	int y = 0;
	if (x > 0)
		y -= 1;
	return y;
}
term% 5c -S t.c
	TEXT	f+0(SB),0,$4
	MOVW	$0,R2
	CMP	$0,R0,
	SUB.GT	$1,R2,R2
	MOVW	R2,R0
	RET	,
	RET	,
	END	,



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARM compiler
  2008-03-17 21:46     ` Richard Miller
@ 2008-03-17 22:28       ` Rob Pike
  2008-03-18  4:16         ` Bruce Ellis
  0 siblings, 1 reply; 9+ messages in thread
From: Rob Pike @ 2008-03-17 22:28 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Spoilsport.

-rob

On Tue, Mar 18, 2008 at 8:46 AM, Richard Miller <9fans@hamnavoe.com> wrote:
> > speaking of arm:
>  >
>  > does the compiler emit conditional instructions
>  > like subgt?
>
>  term% cat t.c
>  int
>  f(int x)
>  {
>         int y = 0;
>         if (x > 0)
>                 y -= 1;
>         return y;
>  }
>  term% 5c -S t.c
>         TEXT    f+0(SB),0,$4
>         MOVW    $0,R2
>         CMP     $0,R0,
>         SUB.GT  $1,R2,R2
>         MOVW    R2,R0
>         RET     ,
>         RET     ,
>         END     ,
>
>
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARM compiler
  2008-03-17 22:28       ` Rob Pike
@ 2008-03-18  4:16         ` Bruce Ellis
  2008-03-18  5:07           ` erik quanstrom
  0 siblings, 1 reply; 9+ messages in thread
From: Bruce Ellis @ 2008-03-18  4:16 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

rtfc(1) is on the rtfm(1) page.

grep of /sys/src/cmd/5c/*.c may have been enough.

brucee

On Tue, Mar 18, 2008 at 9:28 AM, Rob Pike <robpike@gmail.com> wrote:
> Spoilsport.
>
> -rob
>
>
> On Tue, Mar 18, 2008 at 8:46 AM, Richard Miller <9fans@hamnavoe.com> wrote:
> > > speaking of arm:
> >  >
> >  > does the compiler emit conditional instructions
> >  > like subgt?
> >
> >  term% cat t.c
> >  int
> >  f(int x)
> >  {
> >         int y = 0;
> >         if (x > 0)
> >                 y -= 1;
> >         return y;
> >  }
> >  term% 5c -S t.c
> >         TEXT    f+0(SB),0,$4
> >         MOVW    $0,R2
> >         CMP     $0,R0,
> >         SUB.GT  $1,R2,R2
> >         MOVW    R2,R0
> >         RET     ,
> >         RET     ,
> >         END     ,
> >
> >
> >
>
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARM compiler
  2008-03-18  4:16         ` Bruce Ellis
@ 2008-03-18  5:07           ` erik quanstrom
  2008-03-18  6:10             ` Bruce Ellis
  0 siblings, 1 reply; 9+ messages in thread
From: erik quanstrom @ 2008-03-18  5:07 UTC (permalink / raw)
  To: 9fans

> rtfc(1) is on the rtfm(1) page.
>
> grep of /sys/src/cmd/5c/*.c may have been enough.
>
> brucee

despite your usual lack of information your jab is stale
and obvious.

it is interesting that your standards for appropriate 9fans
questions are in no way met by your retorts.

- erik



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [9fans] ARM compiler
  2008-03-18  5:07           ` erik quanstrom
@ 2008-03-18  6:10             ` Bruce Ellis
  0 siblings, 0 replies; 9+ messages in thread
From: Bruce Ellis @ 2008-03-18  6:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

information was precise. ignore it.

brucee

On Tue, Mar 18, 2008 at 4:07 PM, erik quanstrom <quanstro@quanstro.net> wrote:
> > rtfc(1) is on the rtfm(1) page.
> >
> > grep of /sys/src/cmd/5c/*.c may have been enough.
> >
> > brucee
>
> despite your usual lack of information your jab is stale
> and obvious.
>
> it is interesting that your standards for appropriate 9fans
> questions are in no way met by your retorts.
>
> - erik
>
>
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-03-18  6:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13 21:14 [9fans] more bitsy stuff john
2008-03-17  9:50 ` [9fans] ARMv6 compiler ? (was: more bitsy stuff) prem
2008-03-17 12:39   ` Charles Forsyth
2008-03-17 17:55   ` [9fans] ARM compiler erik quanstrom
2008-03-17 21:46     ` Richard Miller
2008-03-17 22:28       ` Rob Pike
2008-03-18  4:16         ` Bruce Ellis
2008-03-18  5:07           ` erik quanstrom
2008-03-18  6:10             ` Bruce Ellis

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).