This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

SPARC context switching


Hi,

I'm doing an eCos port from SPARClite to proprietary SPARC V8 architecture.
Our SPARC has 7 register windows as opposed to SPARClite's 8.  I got to the
point where I can execute single-threaded code.  However, a two-thread app
crashes after each thread executes once.  The crash occurs during context
switch due to %i7 (return address) loaded with invalid value.  This value,
0x03030005, is always the same and appears to be one of the "magic"
constants initialized in hal_thread_init_context() function (in icontext.c).
Any help will be greatly appreciated.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]