public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] hal/powerpc/arch/current/src/vectors.S
@ 2003-10-27 22:25 Bob Koninckx
  2003-10-28  8:50 ` Gary Thomas
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Koninckx @ 2003-10-27 22:25 UTC (permalink / raw)
  To: ecos-discuss

Hi,

Apparently, the following few lines in default interrupt and exception
vsr of the powerpc architecture have been made conditional. That is,
lines 474 and following

  # Enable MMU.
  lwi     r3,CYG_MSR
  sync
  mtmsr   r3
  sync

have been changed to

#ifdef CYGHWR_HAL_POWERPC_ENABLE_MMU
  # Enable MMU.
  lwi     r3,CYG_MSR
  sync
  mtmsr   r3
  sync
#endif


I think this is not correct, since the CYG_MSR macro holds more
information than just enabling / disabling of the MMU. On the mpc555, it
is also used to enable / disable the floating point unit. This
particular processor does not have an MMU. As a consequence, the now
made conditional code is no longer included in the build. The first
interrupt therefore causes a floating point unavail exception as soon as
the floating point registers are stached away.

Bob


-- 
----------------------------------------------------------------------
ir. Bob Koninckx
Katholieke Universiteit Leuven
Division Production Engineering,                   tel.  +32 16 322535
Machine Design and Automation                      fax.  +32 16 322987
Celestijnenlaan 300B                  bob.koninckx@mech.kuleuven.ac.be
B-3001 Leuven Belgium               http://www.mech.kuleuven.ac.be/pma
----------------------------------------------------------------------



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] hal/powerpc/arch/current/src/vectors.S
  2003-10-27 22:25 [ECOS] hal/powerpc/arch/current/src/vectors.S Bob Koninckx
@ 2003-10-28  8:50 ` Gary Thomas
  0 siblings, 0 replies; 2+ messages in thread
From: Gary Thomas @ 2003-10-28  8:50 UTC (permalink / raw)
  To: bob.koninckx; +Cc: ecos-discuss


Bob Koninckx said:
> Hi,
>
> Apparently, the following few lines in default interrupt and exception
> vsr of the powerpc architecture have been made conditional. That is,
> lines 474 and following
>
>   # Enable MMU.
>   lwi     r3,CYG_MSR
>   sync
>   mtmsr   r3
>   sync
>
> have been changed to
>
> #ifdef CYGHWR_HAL_POWERPC_ENABLE_MMU
>   # Enable MMU.
>   lwi     r3,CYG_MSR
>   sync
>   mtmsr   r3
>   sync
> #endif
>
>
> I think this is not correct, since the CYG_MSR macro holds more
> information than just enabling / disabling of the MMU. On the mpc555, it
> is also used to enable / disable the floating point unit. This
> particular processor does not have an MMU. As a consequence, the now
> made conditional code is no longer included in the build. The first
> interrupt therefore causes a floating point unavail exception as soon as
> the floating point registers are stached away.

Indeed, it looks like I was a bit over-exuberant with that change, sorry!
I've reverted it, along with some better comments about what's going on.





-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2003-10-28  8:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-27 22:25 [ECOS] hal/powerpc/arch/current/src/vectors.S Bob Koninckx
2003-10-28  8:50 ` 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).