lkml.org 
[lkml]   [2012]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH]Documentation: Chinese translation of Documentation/arm/kernel_user_helpers.txt
From
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@gmail.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
\
 
 \ /
  Last update: 2012-10-31 15:41    [W:0.080 / U:0.352 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site