Messages in this thread | | | Subject | RE: [PATCH x86_64]: Setup PER_LINUX32 on x86_64 | Date | Tue, 2 Nov 2004 18:00:36 +0800 | From | "Jin, Gordon" <> |
| |
Jin, Gordon <> wrote on Tuesday, November 02, 2004 4:48 PM:
> On x86_64, PER_LINUX32 is not setup but used by syscall personality > and uname. This patch sets PER_LINUX32 when x86 binary loaded so it > can be used correctly. > - Set personality to PER_LINUX32 when x86 binary loaded. > - Set personality to PER_LINUX when x86_64 binary loaded. > - Use sys32_personality instead of sys_personality. > - Add sys32_newuname() for syscall newuname. > - Remove the unnecessary check for PER_LINUX32 in sys_uname(). > A side question is: To distinguish 32-bit and native 64-bit app on x86-64(and some other archs), somewhere PER_LINUX32 is used, while somewhere TIF_IA32 is used. So both of them need maintained, respectively in task_struct and thread_info. Is it redundant? Can we do away TIF_IA32?
Thanks, Gordon - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |