| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] [PATCH 25/40] arm64: set the stack for the arm_start_thread
 Hi Shijie,7 On 09/11/17 03:11, Huang Shijie wrote: On Wed, Nov 08, 2017 at 09:48:49AM +0000, Julien Grall wrote:Hi, On 08/11/17 06:26, Huang Shijie wrote:On Tue, Nov 07, 2017 at 10:22:02AM +0000, Julien Grall wrote:Hi Shijie, On 07/11/17 08:25, Huang Shijie wrote:On Mon, Nov 06, 2017 at 02:39:30PM +0000, Julien Grall wrote:Hi Shijie, On 03/11/17 03:12, Huang Shijie wrote: That a description of the symptoms... And I already guessed that from you previous e-mail... By justification, I was expecting you to describe the layout of the Arm32 stack and explain why you think this was not set... 
Anyway, I had a look at it. On Arm32, sp and lr are read with:
        stmia   r0, {sp, lr}    @ Store current sp and ip to prev's struct 
thread
As the comment says, the sp/lr is stored in struct thread. r0 actually 
points to &thread.sp. So it is not stored on the stack and can't see how 
you say this will go wrong.
Looking at the implementation for Arm64, you never use sp/lr from the thread structure. But instead store sp on the stack... Can you explain why this choice? Cheers, -- Julien Grall _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel 
 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |