Re: [PATCH] Generic is_compat_task helper

From: Stephen Rothwell
Date: Fri Feb 17 2006 - 01:00:20 EST


On Thu, 16 Feb 2006 21:49:39 -0800 Andrew Morton <akpm@xxxxxxxx> wrote:
>
> 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.

Aren't there really two things here:
in the syscall path you want to know that the kernel
was entered through a 32 bit (compat) syscall entry point so
you know what its arguments are and how to set up its return
values

in some places you need to know if the mm is a 32 bit mm

--
Cheers,
Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
http://www.canb.auug.org.au/~sfr/

Attachment: pgp00000.pgp
Description: PGP signature