Re: [PATCH 1/2] x86: Rename TIF_ADDR32 to TIF_32BIT

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

 



On Tue, Sep 21, 2021 at 07:02:51PM +0800, sxwjean@xxxxxx wrote:
> From: Xiongwei Song <sxwjean@xxxxxxxxx>
> 
> In arm64 or powerpc or sparc, the 32 bits process in 64 bits kernel is set
> flag TIF_32BIT. However in x86, that flag name is TIF_ADDR32. This patch
> makes the flag name in x86 same as other archs.

x86 is fundamentally different here, the TIF flag does not say (nor can
it) anything about the bitness of the code running. On x86_64 a 64bit
process can run 32bit code without the kernel necessarily knowing
anything about it.

The only thing it does it limit the address range, and as such the name
is correct.





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux