All of lore.kernel.org
 help / color / mirror / Atom feed
From: liqin.chen@sunplusct.com
To: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
	torvalds@linux-foundation.org
Subject: Re: [PATCH 07/27] score: create head files elf.h emergency-restart.h errno.h
Date: Mon, 15 Jun 2009 20:11:34 +0800	[thread overview]
Message-ID: <OF48364F7F.ED6F93C7-ON482575D6.0042A7E0-482575D6.0043654D@sunplusct.com> (raw)
In-Reply-To: <200906140023.06690.arnd@arndb.de>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="GB2312", Size: 1170 bytes --]

Arnd Bergmann <arnd@arndb.de> дÓÚ 2009-06-14 06:23:06:

> On Saturday 13 June 2009, liqin.chen@sunplusct.com wrote:
> > > 
> > > EMAXERRNO is mips specific right now. Do you actually need it 
somewhere?
> > > 
> > 
> > Yes, I used it in entry.S, maybe I could remove this define latter.
> > 
> 
> Ok. Note that the maximum error number that is supposed to get sent back
> to user space is 511. Most architectures check the return value of the
> system call to be between -4095 and zero upon entering user space.
> Checking it in the kernel gives you the chance to override the
> error status from a system call with force_successful_syscall_return().
> 
> If that is your intention, you should probably leave the definition in 
there.
> Powerpc uses _LAST_ERRNO for the same purpose, which is somewhat 
inconsistent
> with mips and also uses a different value to compare against.
> 

Maybe I can don't use EMAXERRNO in score code. But I think define a 
maximum error number in asm-generic/errno.h is better.

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

WARNING: multiple messages have this Message-ID (diff)
From: liqin.chen@sunplusct.com
To: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org,
	torvalds@linux-foundation.org
Subject: Re: [PATCH 07/27] score: create head files elf.h emergency-restart.h errno.h
Date: Mon, 15 Jun 2009 20:11:34 +0800	[thread overview]
Message-ID: <OF48364F7F.ED6F93C7-ON482575D6.0042A7E0-482575D6.0043654D@sunplusct.com> (raw)
In-Reply-To: <200906140023.06690.arnd@arndb.de>

Arnd Bergmann <arnd@arndb.de> 写于 2009-06-14 06:23:06:

> On Saturday 13 June 2009, liqin.chen@sunplusct.com wrote:
> > > 
> > > EMAXERRNO is mips specific right now. Do you actually need it 
somewhere?
> > > 
> > 
> > Yes, I used it in entry.S, maybe I could remove this define latter.
> > 
> 
> Ok. Note that the maximum error number that is supposed to get sent back
> to user space is 511. Most architectures check the return value of the
> system call to be between -4095 and zero upon entering user space.
> Checking it in the kernel gives you the chance to override the
> error status from a system call with force_successful_syscall_return().
> 
> If that is your intention, you should probably leave the definition in 
there.
> Powerpc uses _LAST_ERRNO for the same purpose, which is somewhat 
inconsistent
> with mips and also uses a different value to compare against.
> 

Maybe I can don't use EMAXERRNO in score code. But I think define a 
maximum error number in asm-generic/errno.h is better.


  reply	other threads:[~2009-06-15 12:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-09  6:26 [PATCH 07/27] score: create head files elf.h emergency-restart.h errno.h liqin.chen
2009-06-09  6:26 ` liqin.chen
2009-06-09 17:20 ` Arnd Bergmann
2009-06-13  6:39   ` liqin.chen
2009-06-13  6:39     ` liqin.chen
2009-06-13 22:23     ` Arnd Bergmann
2009-06-15 12:11       ` liqin.chen [this message]
2009-06-15 12:11         ` liqin.chen
2009-06-15 13:30         ` [PATCH] asm-generic: add EMAXERRNO Arnd Bergmann
2009-06-15 13:31           ` Matthew Wilcox
2009-06-15 14:02             ` Arnd Bergmann
2009-06-16  3:04               ` liqin.chen
2009-06-16  3:04                 ` liqin.chen
2009-06-16 14:13                 ` Arnd Bergmann
2009-06-15 13:33           ` liqin.chen
2009-06-15 13:33             ` liqin.chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OF48364F7F.ED6F93C7-ON482575D6.0042A7E0-482575D6.0043654D@sunplusct.com \
    --to=liqin.chen@sunplusct.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.