summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Henderson <rth@dorothy.sfbay.redhat.com>2002-12-06 01:55:15 -0800
committerRichard Henderson <rth@dorothy.sfbay.redhat.com>2002-12-06 01:55:15 -0800
commite52038cbb10edde7d3b0f722c83299314f04a4f8 (patch)
tree1d894116574a235e051e9769ccd1f04b216b89c3 /include
parent942abc308abd0f4b33c06b04b66ec34a1e0ca5b3 (diff)
[ALPHA] Add restart_syscall support.
Diffstat (limited to 'include')
-rw-r--r--include/asm-alpha/current.h2
-rw-r--r--include/asm-alpha/thread_info.h5
-rw-r--r--include/asm-alpha/unistd.h3
3 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-alpha/current.h b/include/asm-alpha/current.h
index dccab45e2c9e..8d88a13c1bec 100644
--- a/include/asm-alpha/current.h
+++ b/include/asm-alpha/current.h
@@ -1,7 +1,7 @@
#ifndef _ALPHA_CURRENT_H
#define _ALPHA_CURRENT_H
-#include <asm/thread_info.h>
+#include <linux/thread_info.h>
#define get_current() (current_thread_info()->task + 0)
#define current get_current()
diff --git a/include/asm-alpha/thread_info.h b/include/asm-alpha/thread_info.h
index 2702e1ccd89d..40d1416a7037 100644
--- a/include/asm-alpha/thread_info.h
+++ b/include/asm-alpha/thread_info.h
@@ -25,6 +25,8 @@ struct thread_info {
int bpt_nsaved;
unsigned long bpt_addr[2]; /* breakpoint handling */
unsigned int bpt_insn[2];
+
+ struct restart_block restart_block;
};
/*
@@ -35,6 +37,9 @@ struct thread_info {
task: &tsk, \
exec_domain: &default_exec_domain, \
addr_limit: KERNEL_DS, \
+ .restart_block = { \
+ .fn = do_no_restart_syscall, \
+ }, \
}
#define init_thread_info (init_thread_union.thread_info)
diff --git a/include/asm-alpha/unistd.h b/include/asm-alpha/unistd.h
index 36585f474abe..da926dbabc93 100644
--- a/include/asm-alpha/unistd.h
+++ b/include/asm-alpha/unistd.h
@@ -349,7 +349,8 @@
#define __NR_sys_epoll_wait 409
#define __NR_remap_file_pages 410
#define __NR_set_tid_address 411
-#define NR_SYSCALLS 412
+#define __NR_restart_syscall 412
+#define NR_SYSCALLS 413
#if defined(__GNUC__)