Skip to content

Commit

Permalink
um: kill shared/task.h and HOST_TASK_REGS
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent 1cf5e62 commit 5ade887
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion arch/um/include/shared/common-offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);

OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
OFFSET(HOST_TASK_PID, task_struct, pid);

DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
Expand Down
9 changes: 0 additions & 9 deletions arch/um/include/shared/task.h

This file was deleted.

4 changes: 3 additions & 1 deletion arch/x86/um/bugs_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
#include <signal.h>
#include "kern_util.h"
#include "longjmp.h"
#include "task.h"
#include "sysdep/ptrace.h"
#include <generated/asm-offsets.h>

/* Set during early boot */
static int host_has_cmov = 1;
static jmp_buf cmov_test_return;

#define TASK_PID(task) *((int *) &(((char *) (task))[HOST_TASK_PID]))

static void cmov_sigill_test_handler(int sig)
{
host_has_cmov = 0;
Expand Down

0 comments on commit 5ade887

Please sign in to comment.