From f82abc9807e340c799c6e2b0419e7a292444cf2e Mon Sep 17 00:00:00 2001 From: Paolo 'Blaisorblade' Giarrusso Date: Sun, 1 May 2005 08:58:56 -0700 Subject: [PATCH] --- yaml --- r: 693 b: refs/heads/master c: acef2e55d2a1b59bb5610cacc546c1d1b5de2dc9 h: refs/heads/master i: 691: 3628f94ff0ec9439081b5f54f4535b2f823c7f9b v: v3 --- [refs] | 2 +- trunk/include/asm-um/processor-generic.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7f97f542814a..038472db270d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ffa0aea681a5f3c8aecbb86f1cfd3486043805de +refs/heads/master: acef2e55d2a1b59bb5610cacc546c1d1b5de2dc9 diff --git a/trunk/include/asm-um/processor-generic.h b/trunk/include/asm-um/processor-generic.h index 4d9404989b5a..b953b1ad3b02 100644 --- a/trunk/include/asm-um/processor-generic.h +++ b/trunk/include/asm-um/processor-generic.h @@ -17,6 +17,10 @@ struct task_struct; struct mm_struct; struct thread_struct { + /* This flag is set to 1 before calling do_fork (and analyzed in + * copy_thread) to mark that we are begin called from userspace (fork / + * vfork / clone), and reset to 0 after. It is left to 0 when called + * from kernelspace (i.e. kernel_thread() or fork_idle(), as of 2.6.11). */ int forking; int nsyscalls; struct pt_regs regs;