public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h
@ 2001-09-25  8:00 Richard Panton
  2001-09-25 12:59 ` Jonathan Larmour
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Panton @ 2001-09-25  8:00 UTC (permalink / raw)
  To: ecos discussion list

I believe that the wrong register is used when initialising the MMU
Control Register in line 301 - r1 should be used (set up on line 295)
rather than r0.

Best regards,
Richard Panton

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

* Re: [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h
  2001-09-25  8:00 [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h Richard Panton
@ 2001-09-25 12:59 ` Jonathan Larmour
  2001-09-25 15:03   ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Larmour @ 2001-09-25 12:59 UTC (permalink / raw)
  To: Richard Panton; +Cc: ecos discussion list

Richard Panton wrote:
> 
> I believe that the wrong register is used when initialising the MMU
> Control Register in line 301 - r1 should be used (set up on line 295)
> rather than r0.

You believe or you know? :-). I take it you tried it and it's a happy
bunny? If so I'll make the change.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

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

* Re: [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h
  2001-09-25 12:59 ` Jonathan Larmour
@ 2001-09-25 15:03   ` Gary Thomas
  2001-09-27  2:49     ` Richard Panton
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2001-09-25 15:03 UTC (permalink / raw)
  To: Jonathan Larmour; +Cc: Richard Panton, eCos Discussion

On Wed, 2001-09-26 at 04:58, Jonathan Larmour wrote:
> Richard Panton wrote:
> > 
> > I believe that the wrong register is used when initialising the MMU
> > Control Register in line 301 - r1 should be used (set up on line 295)
> > rather than r0.
> 
> You believe or you know? :-). I take it you tried it and it's a happy
> bunny? If so I'll make the change.
> 

On current ARM chips (certainly the SA1110), it doesn't matter.  The
value loaded into 'r1' contains only "reserved MBO" bits.

For pedantic purposes, the line can be changed.


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

* Re: [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h
  2001-09-25 15:03   ` Gary Thomas
@ 2001-09-27  2:49     ` Richard Panton
  2001-09-27 19:12       ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Panton @ 2001-09-27  2:49 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Jonathan Larmour, eCos Discussion

On 26 Sep 2001, Gary Thomas wrote:

> On Wed, 2001-09-26 at 04:58, Jonathan Larmour wrote:
> > Richard Panton wrote:
> > >
> > > I believe that the wrong register is used when initialising the MMU
> > > Control Register in line 301 - r1 should be used (set up on line 295)
> > > rather than r0.
> >
> > You believe or you know? :-). I take it you tried it and it's a happy
> > bunny? If so I'll make the change.

OK, I _know_ it's wrong.

> On current ARM chips (certainly the SA1110), it doesn't matter.  The
> value loaded into 'r1' contains only "reserved MBO" bits.

I was changing the value of the System/Rom bits in the value loaded into
r1, then noted that r1 isn't actually used. It could cause some minor
confusion for anyone else who wishes to do the same.

> For pedantic purposes, the line can be changed.

If there's one thing I've learned about programming, especially low level,
it's that being pedantic is good practice, 'cause that's just the way the
processor is... ;-)

Best Regards,
Richard

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

* Re: [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h
  2001-09-27  2:49     ` Richard Panton
@ 2001-09-27 19:12       ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2001-09-27 19:12 UTC (permalink / raw)
  To: Richard Panton; +Cc: Jonathan Larmour, eCos Discussion

On Thu, 2001-09-27 at 18:48, Richard Panton wrote:
> On 26 Sep 2001, Gary Thomas wrote:
> 
> > On Wed, 2001-09-26 at 04:58, Jonathan Larmour wrote:
> > > Richard Panton wrote:
> > > >
> > > > I believe that the wrong register is used when initialising the MMU
> > > > Control Register in line 301 - r1 should be used (set up on line 295)
> > > > rather than r0.
> > >
> > > You believe or you know? :-). I take it you tried it and it's a happy
> > > bunny? If so I'll make the change.
> 
> OK, I _know_ it's wrong.
> 
> > On current ARM chips (certainly the SA1110), it doesn't matter.  The
> > value loaded into 'r1' contains only "reserved MBO" bits.
> 
> I was changing the value of the System/Rom bits in the value loaded into
> r1, then noted that r1 isn't actually used. It could cause some minor
> confusion for anyone else who wishes to do the same.
> 
> > For pedantic purposes, the line can be changed.
> 
> If there's one thing I've learned about programming, especially low level,
> it's that being pedantic is good practice, 'cause that's just the way the
> processor is... ;-)
> 

I've applied this to our sources.


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

end of thread, other threads:[~2001-09-27 19:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-25  8:00 [ECOS] hal/arm/sa11x0/ipaq/current/include/hal_platform_setup.h Richard Panton
2001-09-25 12:59 ` Jonathan Larmour
2001-09-25 15:03   ` Gary Thomas
2001-09-27  2:49     ` Richard Panton
2001-09-27 19:12       ` Gary Thomas

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 read-only IMAP folder(s) and NNTP newsgroup(s).