public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] HAL_SavedRegisters (ecos 1_3_1)
@ 2001-05-30 10:36 Rafael Rodríguez Velilla
  2001-05-30 12:13 ` [ECOS] " Fabrice Gautier
  2001-05-31  8:43 ` [ECOS] " Jonathan Larmour
  0 siblings, 2 replies; 7+ messages in thread
From: Rafael Rodríguez Velilla @ 2001-05-30 10:36 UTC (permalink / raw)
  To: ecos

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

  I can't find any place where the member msr of the struct
HAL_SavedRegisters is used (I have reviewed only the ARM
implementation). I think that this member should be omitted from the
struct.

  I'd also want to point out that the method load_context of the class
Cyg_HardwareThread seems to me that does the wrong thing. It is
implemented like:
inline void Cyg_HardwareThread ::load_context ()
{
   CYG_ADDRESS dummy_stack_ptr;
   HAL_THREAD_SWITCH_CONTEXT(&dummy_stack, &stack_ptr);
}

I think that HAL_THREAD_LOAD_CONTEXT is the correct function to call
(and dummy_stack_ptr is unnecessary). load_context shouldn't, because of
its definition, save the old context.
(Well, anyway it isn't used anywhere)





--
Rafael Rodríguez Velilla        rrv@tid.es
Telefónica I+D          http://www.tid.es
Telf: +34 - 91 337 4270



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

end of thread, other threads:[~2001-06-01  8:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-30 10:36 [ECOS] HAL_SavedRegisters (ecos 1_3_1) Rafael Rodríguez Velilla
2001-05-30 12:13 ` [ECOS] " Fabrice Gautier
2001-05-31  0:17   ` Rafael Rodríguez Velilla
2001-05-31  8:43 ` [ECOS] " Jonathan Larmour
2001-05-31  8:51   ` Nick Garnett
2001-05-31  8:58   ` Gary Thomas
2001-06-01  8:11     ` Rafael Rodríguez Velilla

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