summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2002-08-30 12:42:47 +1000
committerAnton Blanchard <anton@samba.org>2002-08-30 12:42:47 +1000
commit1c24198eb25ee2b89f871097f6a414939c86d6f7 (patch)
tree399bf8a2d0cac0adc1b6c757717b214b144c2d47 /include
parente4bbce8a4559d569678af2edf0ddd4338bd60148 (diff)
ppc64: Add security and AIO syscalls
ppc64: copy FE0 and FE1 bits into MSR when ptracing ppc64: warn when registering duplicate ioctls
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc64/ptrace-common.h17
-rw-r--r--include/asm-ppc64/unistd.h5
2 files changed, 19 insertions, 3 deletions
diff --git a/include/asm-ppc64/ptrace-common.h b/include/asm-ppc64/ptrace-common.h
index 68b8ee69b48f..b3295b1bf992 100644
--- a/include/asm-ppc64/ptrace-common.h
+++ b/include/asm-ppc64/ptrace-common.h
@@ -19,9 +19,20 @@
*/
static inline unsigned long get_reg(struct task_struct *task, int regno)
{
- if (regno < (sizeof(struct pt_regs) / sizeof(unsigned long)))
- return ((unsigned long *)task->thread.regs)[regno];
- return 0;
+ unsigned long tmp = 0;
+
+ /*
+ * Put the correct FP bits in, they might be wrong as a result
+ * of our lazy FP restore.
+ */
+ if (regno == PT_MSR) {
+ tmp = ((unsigned long *)task->thread.regs)[PT_MSR];
+ tmp |= task->thread.fpexc_mode;
+ } else if (regno < (sizeof(struct pt_regs) / sizeof(unsigned long))) {
+ tmp = ((unsigned long *)task->thread.regs)[regno];
+ }
+
+ return tmp;
}
/*
diff --git a/include/asm-ppc64/unistd.h b/include/asm-ppc64/unistd.h
index 0aacc2af9221..d27747b4bd3c 100644
--- a/include/asm-ppc64/unistd.h
+++ b/include/asm-ppc64/unistd.h
@@ -236,6 +236,11 @@
#define __NR_security 224
#define __NR_tuxcall 225
#define __NR_sendfile64 226
+#define __NR_io_setup 227
+#define __NR_io_destroy 228
+#define __NR_io_getevents 229
+#define __NR_io_submit 230
+#define __NR_io_cancel 231
#define __NR(n) #n