[Top] [All Lists]

Re: handle_sys question

To: Songmao Tian <>
Subject: Re: handle_sys question
From: David Daney <>
Date: Tue, 22 May 2012 12:46:39 -0700
Cc: linux-mips <>
In-reply-to: <>
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 05/22/2012 02:40 AM, Songmao Tian wrote:
Hello all:
    In handle_sys there's a
         sw      a3, PT_R26(sp)          # save a3 for syscall restarting

I woner why it need to save  a3 in R26(k0) slot in the stack?

It has to go somewhere. The K0 and K1 slots aren't used to save other things.

David Daney

<Prev in Thread] Current Thread [Next in Thread>