Skip to content

Commit

Permalink
um: get rid of sysdep/sc.h
Browse files Browse the repository at this point in the history
only sysdep/sigcontext.h uses it and very few definitions are
actually used.  The rest refers to symbols that don't even
exist anymore anyway.

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 412f90e commit ad694df
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 91 deletions.
44 changes: 0 additions & 44 deletions arch/um/sys-i386/shared/sysdep/sc.h

This file was deleted.

9 changes: 8 additions & 1 deletion arch/um/sys-i386/shared/sysdep/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
#ifndef __SYS_SIGCONTEXT_I386_H
#define __SYS_SIGCONTEXT_I386_H

#include "sysdep/sc.h"
#include <generated/user_constants.h>

#define IP_RESTART_SYSCALL(ip) ((ip) -= 2)

#define SC_OFFSET(sc, field) \
*((unsigned long *) &(((char *) (sc))[HOST_##field]))

#define SC_TRAPNO(sc) SC_OFFSET(sc, SC_TRAPNO)
#define SC_ERR(sc) SC_OFFSET(sc, SC_ERR)
#define SC_CR2(sc) SC_OFFSET(sc, SC_CR2)

#define GET_FAULTINFO_FROM_SC(fi, sc) \
{ \
(fi).cr2 = SC_CR2(sc); \
Expand Down
45 changes: 0 additions & 45 deletions arch/um/sys-x86_64/shared/sysdep/sc.h

This file was deleted.

8 changes: 7 additions & 1 deletion arch/um/sys-x86_64/shared/sysdep/sigcontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
#ifndef __SYSDEP_X86_64_SIGCONTEXT_H
#define __SYSDEP_X86_64_SIGCONTEXT_H

#include <sysdep/sc.h>
#include <generated/user_constants.h>

#define SC_OFFSET(sc, field) \
*((unsigned long *) &(((char *) (sc))[HOST_##field]))
#define SC_CR2(sc) SC_OFFSET(sc, SC_CR2)
#define SC_ERR(sc) SC_OFFSET(sc, SC_ERR)
#define SC_TRAPNO(sc) SC_OFFSET(sc, SC_TRAPNO)

#define IP_RESTART_SYSCALL(ip) ((ip) -= 2)

Expand Down

0 comments on commit ad694df

Please sign in to comment.