lkml.org 
[lkml]   [2006]   [Feb]   [17]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateThu, 16 Feb 2006 23:03:18 -0800 (PST)
SubjectRe: [PATCH] Generic is_compat_task helper
From"David S. Miller" <>
From: Andrew Morton <akpm@osdl.org>
Date: Thu, 16 Feb 2006 21:49:39 -0800

> Kyle McMartin <kyle@parisc-linux.org> wrote:
> >
> > +static inline int __is_compat_task(struct task_struct *t)
> > +{
> > +	return (personality(t->personality) == PER_LINUX32);
> > +}
> > +
> 
> What continues to bug me about this (in a high-level hand-wavy sort of way)
> is that this is an attribute of the mm_struct, not of the task_struct.

It's an attribute of the "system call being invoked right now".
So you can emulate ia32 apps on ia64 or x86_64 by just trapping
to the 32-bit system calls directly, and stuff like that.
-
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/

\
 
 \ /
  Last update: 2006-02-17 08:06    [from the cache]
©2003-2008