summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2002-12-08 16:36:00 +1100
committerPaul Mackerras <paulus@samba.org>2002-12-08 16:36:00 +1100
commit88e127a820a70c6986f3f298df9c92135c9ddda8 (patch)
tree3c3e80bc8f3adbfb6613a4b06372097738d0f257 /include
parentd6162f7ec4c124b58e758bfb269ddde2e76b0287 (diff)
PPC32: add support for restarting syscalls with ERESTART_RESTARTBLOCK
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/errno.h8
-rw-r--r--include/asm-ppc/thread_info.h8
-rw-r--r--include/asm-ppc/unistd.h2
3 files changed, 7 insertions, 11 deletions
diff --git a/include/asm-ppc/errno.h b/include/asm-ppc/errno.h
index f328ba4705f8..19f20bd41ae6 100644
--- a/include/asm-ppc/errno.h
+++ b/include/asm-ppc/errno.h
@@ -6,12 +6,6 @@
#undef EDEADLOCK
#define EDEADLOCK 58 /* File locking deadlock error */
-/* Should never be seen by user programs */
-#define ERESTARTSYS 512
-#define ERESTARTNOINTR 513
-#define ERESTARTNOHAND 514 /* restart if no handler.. */
-#define ENOIOCTLCMD 515 /* No ioctl command */
-
-#define _LAST_ERRNO 515
+#define _LAST_ERRNO 516
#endif
diff --git a/include/asm-ppc/thread_info.h b/include/asm-ppc/thread_info.h
index a89f707e903c..5ee1cf139c9e 100644
--- a/include/asm-ppc/thread_info.h
+++ b/include/asm-ppc/thread_info.h
@@ -23,6 +23,7 @@ struct thread_info {
unsigned long flags; /* low level flags */
int cpu; /* cpu we're on */
int preempt_count;
+ struct restart_block restart_block;
};
#define INIT_THREAD_INFO(tsk) \
@@ -31,7 +32,10 @@ struct thread_info {
.exec_domain = &default_exec_domain, \
.flags = 0, \
.cpu = 0, \
- .preempt_count = 1 \
+ .preempt_count = 1, \
+ .restart_block = { \
+ .fn = do_no_restart_syscall, \
+ }, \
}
#define init_thread_info (init_thread_union.thread_info)
@@ -70,8 +74,6 @@ static inline struct thread_info *current_thread_info(void)
#define TI_FLAGS 8
#define TI_CPU 12
#define TI_PREEMPT 16
-#define TI_SOFTIRQ 20
-#define TI_HARDIRQ 24
#define PREEMPT_ACTIVE 0x4000000
diff --git a/include/asm-ppc/unistd.h b/include/asm-ppc/unistd.h
index ae7ad3cc1dbe..fc7c0db36807 100644
--- a/include/asm-ppc/unistd.h
+++ b/include/asm-ppc/unistd.h
@@ -4,7 +4,7 @@
/*
* This file contains the system call numbers.
*/
-
+#define __NR_restart_syscall 0
#define __NR_exit 1
#define __NR_fork 2
#define __NR_read 3