Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1387299

Re: [PATCH] arm64: fix /proc/cpuinfo for elf32

From Suzuki K Poulose <Suzuki.Poulose@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: fix /proc/cpuinfo for elf32
Date 2016-04-26 11:30 +0200
Message-ID <rs7tF-57R-9@gated-at.bofh.it> (permalink)
References <rrFH4-7uo-5@gated-at.bofh.it> <rrKQq-3ck-35@gated-at.bofh.it> <rs0Vb-8eO-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 26/04/16 03:21, Zengtao (B) wrote:
>
> So you mean the 64-bit grep should see the same cpuinfo as its father process
> which is 32-bit?
>
> For 32-bit process running on 64-bit kernel, we have to explicitly call the personality
> syscall to get the right cpuinfo, but how to deal with the old 32-bit binaries?

Yes, you could use the syscall to switch the personality. Alternately, you could run
"linux32" command to switch the personality to PER_LINUX32 and then execute
64/32 bit applications.

Suzuki

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] arm64: fix /proc/cpuinfo for elf32 Zeng Tao <prime.zeng@huawei.com> - 2016-04-25 05:50 +0200
  Re: [PATCH] arm64: fix /proc/cpuinfo for elf32 Catalin Marinas <catalin.marinas@arm.com> - 2016-04-25 11:20 +0200
    RE: [PATCH] arm64: fix /proc/cpuinfo for elf32 "Zengtao (B)" <prime.zeng@hisilicon.com> - 2016-04-26 04:30 +0200
      Re: [PATCH] arm64: fix /proc/cpuinfo for elf32 Suzuki K Poulose <Suzuki.Poulose@arm.com> - 2016-04-26 11:30 +0200
        RE: [PATCH] arm64: fix /proc/cpuinfo for elf32 "Zengtao (B)" <prime.zeng@hisilicon.com> - 2016-04-27 04:20 +0200
          Re: [PATCH] arm64: fix /proc/cpuinfo for elf32 Catalin Marinas <catalin.marinas@arm.com> - 2016-04-27 12:30 +0200

csiph-web