linux-mips
[Top] [All Lists]

[PATCH] _syscall macros

To: linux-mips@linux-mips.org
Subject: [PATCH] _syscall macros
From: Jun Sun <jsun@mvista.com>
Date: Wed, 9 Jul 2003 15:56:54 -0700
Cc: jsun@mvista.com
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5i
In testing some new syscalls, I found that the current 
_syscall macros do not return the right errno.  A little
further probing shows that errno now is a function call,
and on returning from the call original __v0 from syscall
is corrupted.

Here is a patch to fix this.  Looks good?

Jun

Attachment: 030709.a-errno-messed-up-in-syscall-macros.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] _syscall macros, Jun Sun <=