Commit 5ade8878 authored by Al Viro's avatar Al Viro Committed by Richard Weinberger

um: kill shared/task.h and HOST_TASK_REGS

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 1cf5e62a
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE); DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);
OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
OFFSET(HOST_TASK_PID, task_struct, pid); OFFSET(HOST_TASK_PID, task_struct, pid);
DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE); DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
......
#ifndef __TASK_H
#define __TASK_H
#include <generated/asm-offsets.h>
#define TASK_REGS(task) ((struct uml_pt_regs *) &(((char *) (task))[HOST_TASK_REGS]))
#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
#endif
...@@ -6,13 +6,15 @@ ...@@ -6,13 +6,15 @@
#include <signal.h> #include <signal.h>
#include "kern_util.h" #include "kern_util.h"
#include "longjmp.h" #include "longjmp.h"
#include "task.h"
#include "sysdep/ptrace.h" #include "sysdep/ptrace.h"
#include <generated/asm-offsets.h>
/* Set during early boot */ /* Set during early boot */
static int host_has_cmov = 1; static int host_has_cmov = 1;
static jmp_buf cmov_test_return; static jmp_buf cmov_test_return;
#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))
static void cmov_sigill_test_handler(int sig) static void cmov_sigill_test_handler(int sig)
{ {
host_has_cmov = 0; host_has_cmov = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment