Messages in this thread | | | Subject | Re: [PATCH] arm64: fix /proc/cpuinfo for elf32 | From | Suzuki K Poulose <> | Date | Tue, 26 Apr 2016 10:20:51 +0100 |
| |
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
| |