[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+HMz3gBWkZVq+pcOqX5yrccGHiRw6NqJY7P5d+T_ir=Qzj_9Q@mail.gmail.com>
Date: Wed, 31 Oct 2012 21:56:48 +0800
From: Ninja Tekkaman <tekkamanninja@...il.com>
To: Dongsheng Song <dongsheng.song@...il.com>
Cc: Harry Wei <harryxiyou@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Nicolas Pitre <nicolas.pitre@...aro.org>,
Dave Martin <dave.martin@...aro.org>,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org
Subject: Re: [PATCH]Documentation: Chinese translation of Documentation/arm/kernel_user_helpers.txt
Hi, Dongsheng
Thanks for your help!
I will make a new one ,and add your name.
在 2012年10月31日 下午1:06,Dongsheng Song <dongsheng.song@...il.com> 写道:
> Hi,
>
> There have some misleading in the translation:
>
> -------------------------------- origin --------------------------------
> User space is expected to bypass those helpers and implement those things
> inline (either in the code emitted directly by the compiler, or part of
> the implementation of a library call) when optimizing for a recent enough
> processor that has the necessary native support, but only if resulting
> binaries are already to be incompatible with earlier ARM processors due to
> usage of similar native instructions for other things. In other words
> don't make binaries unable to run on earlier processors just for the sake
> of not using these kernel helpers if your compiled code is not going to
> use new instructions for other purpose.
>
> -------------------------------- Fu Wei --------------------------------
> 当对那些拥有基本原生支持的新型处理器的代码进行优化时,用户空间最好绕
> 过这些辅助代码并在内联函数中实现这些操作(无论是通过编译器在代码中直
> 接放置,还是作为库函数调用实现的一部分),而仅在其他处理器因使用相似
> 的本地指令而导致二进制结果已与早期 ARM 处理不兼容的情况下才使用这些
> 辅助代码。也就是说,如果你编译的代码不会为了其他目的使用新的指令,则
> 不要仅为了不使用这些内核辅助代码而导致二进制程序无法在早期处理器上运
> 行。
> -------------------------------- me --------------------------------
> 当对那些拥有原生支持的新型处理器进行代码优化时,如果已经在其它代码中
> 使用类似的新指令,从而导致二进制结果已与早期 ARM 处理器不兼容的情况下,
> 用户空间最好绕过这些辅助代码,并在内联函数中实现这些操作(无论是通过
> 编译器在代码中直接发出,还是作为库函数调用实现的一部分)。也就是说,
> 如果你编译的代码不会为了其他目的使用新指令,则不要仅为了不使用这些内核
> 辅助代码,导致二进制程序无法在早期处理器上运行。
>
> The attachment is my review result.
>
> --
> Dongsheng
Powered by blists - more mailing lists