Re: [PATCH 07/27] score: create head files elf.h emergency-restart.h errno.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arnd Bergmann <arnd@xxxxxxxx> 写于 2009-06-14 06:23:06:

> On Saturday 13 June 2009, liqin.chen@xxxxxxxxxxxxx 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?????%??檩??w?{.n???{饼??Ф?塄}?财??j:+v??????2??璀??摺?囤??z夸z罐?+?????w棹f


[Index of Archives]     [Linux Kernel]     [Kernel Newbies]     [x86 Platform Driver]     [Netdev]     [Linux Wireless]     [Netfilter]     [Bugtraq]     [Linux Filesystems]     [Yosemite Discussion]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]

  Powered by Linux