| To: | Joe deBlaquiere <jadb@redhat.com> |
|---|---|
| Subject: | Re: [FIX] sysmips(MIPS_ATMIC_SET, ...) ret_from_sys_call vs. o32_ret_from_sys_call |
| From: | Ralf Baechle <ralf@oss.sgi.com> |
| Date: | Thu, 25 Jan 2001 14:19:52 -0800 |
| Cc: | Florian Lohoff <flo@rfc822.org>, linux-mips@oss.sgi.com |
| In-reply-to: | <3A707FFB.60802@redhat.com>; from jadb@redhat.com on Thu, Jan 25, 2001 at 01:35:23PM -0600 |
| References: | <20010124163048.B15348@paradigm.rfc822.org> <20010124165919.C15348@paradigm.rfc822.org> <20010125165530.B12576@paradigm.rfc822.org> <3A70705C.5020600@redhat.com> <3A707FFB.60802@redhat.com> |
| Sender: | owner-linux-mips@oss.sgi.com |
| User-agent: | Mutt/1.2.5i |
On Thu, Jan 25, 2001 at 01:35:23PM -0600, Joe deBlaquiere wrote:
> sysmips(MIPS_ATOMIC_SET,ptr,val)
> {
> *ptr = val ;
> val 0 ;
> }
>
> but it is an atomic operation
>
> if this correct in a pseudo-code sense?
It's more:
sysmips(MIPS_ATOMIC_SET, ptr, val)
{
result = *ptr;
*ptr = val;
return result;
}
Ralf
|
| Previous by Date: | Re: MIPS/linux compatible PCI network cards, Pete Popov |
|---|---|
| Next by Date: | Re: MIPS/linux compatible PCI network cards, Ralf Baechle |
| Previous by Thread: | Re: [FIX] sysmips(MIPS_ATMIC_SET, ...) ret_from_sys_call vs. o32_ret_from_sys_call, Joe deBlaquiere |
| Next by Thread: | Re: [FIX] sysmips(MIPS_ATMIC_SET, ...) ret_from_sys_call vs. o32_ret_from_sys_call, Joe deBlaquiere |
| Indexes: | [Date] [Thread] [Top] [All Lists] |