This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
SPARC context switching
- To: "eCos Mailing List" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] SPARC context switching
- From: "Gene Kozin" <gkozin at c-cube dot com>
- Date: Sat, 23 Oct 1999 19:31:40 -0700
- Organization: C-Cube Microsystems
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.