]> git.hungrycats.org Git - linux/commitdiff
[PATCH] m68knommu support restart_block
authorGreg Ungerer <gerg@snapgear.com>
Sun, 15 Dec 2002 09:00:13 +0000 (01:00 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 15 Dec 2002 09:00:13 +0000 (01:00 -0800)
This patch addes the new restart_block field support to m68knommu
thread_info.h.

include/asm-m68knommu/thread_info.h

index 117fdc6ba006b94fcb77d8558228137e2d036117..6447fc51e07ac85b6894b687a4acaba18180b842 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _ASM_THREAD_INFO_H
 #define _ASM_THREAD_INFO_H
 
+#include <asm/page.h>
+
 #ifdef __KERNEL__
 
 #ifndef __ASSEMBLY__
@@ -22,6 +24,7 @@ struct thread_info {
        unsigned long      flags;               /* low level flags */
        int                cpu;                 /* cpu we're on */
        int                preempt_count;       /* 0 => preemptable, <0 => BUG*/
+       struct restart_block restart_block;
 };
 
 /*
@@ -29,10 +32,13 @@ struct thread_info {
  */
 #define INIT_THREAD_INFO(tsk)                  \
 {                                              \
-       task:           &tsk,                   \
-       exec_domain:    &default_exec_domain,   \
-       flags:          0,                      \
-       cpu:            0,                      \
+       .task           = &tsk,                 \
+       .exec_domain    = &default_exec_domain, \
+       .flags          = 0,                    \
+       .cpu            = 0,                    \
+       .restart_block  = {                     \
+               .fn = do_no_restart_syscall,    \
+       },                                      \
 }
 
 #define init_thread_info       (init_thread_union.thread_info)