From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11473 invoked by alias); 23 Oct 2007 08:13:27 -0000 Received: (qmail 11452 invoked by uid 22791); 23 Oct 2007 08:13:26 -0000 X-Spam-Check-By: sourceware.org Received: from gum.itee.uq.edu.au (HELO gum.itee.uq.edu.au) (130.102.66.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 23 Oct 2007 08:13:22 +0000 Received: from filter1.itee.uq.edu.au (filter1.itee.uq.edu.au [130.102.79.21]) by gum.itee.uq.edu.au (8.13.1/8.13.1) with ESMTP id l9N8D5ZB006958; Tue, 23 Oct 2007 18:13:05 +1000 Received: from g5099368 (g509-9368.itee.uq.edu.au [130.102.64.130]) by filter1.itee.uq.edu.au (8.13.1/8.13.1) with ESMTP id l9N8D2KZ005215; Tue, 23 Oct 2007 18:13:05 +1000 Reply-To: From: "Yi Tang" To: Cc: Date: Tue, 23 Oct 2007 08:13:00 -0000 Message-ID: <000301c8154c$88178640$82406682@itee.uq.edu.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] context switching for sparc hal X-SW-Source: 2007-10/txt/msg00115.txt.bz2 Hi, I have got a question for the context switching used in sparc hal. Refer to the sparc manual, a complete context switching should have the following steps: 1. execute NWINDOWS-2 save instructions to flush all the active register window of the process to the stack 2. execute NWINDOWS-2 restore instructions to move the CWP back to the original windows. However, in the context.s for sparc hal. I can only find the first step: In macro: hal_thread_load_context (line 163) #if !defined(CYGHWR_HAL_SPARC_FLAT) ! allow multiple reg window .rept __WINSIZE-2 ! call WIM overflow trap to store window reg to stack save %sp, -16 * 4, %sp .endr #endif But I can't find any restore code in the following of this file. Does that mean in the ecos context switching, you simply omit the restore process and let all the window reg remain in the stack? I'm currently doing some test on the context switching part and have been stuck on this for several days. And I really appreciate if someone can help me through this. Thanks and Regards, Yi Tang -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss