summaryrefslogtreecommitdiff
path: root/arch/um/sys-ppc/shared/sysdep/sigcontext.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2015-03-18 23:28:15 +0300
committerRichard Weinberger <richard@nod.at>2015-04-13 22:00:48 +0300
commitaaeac66b1a02d399ec8ee63e8d617c1d601ea353 (patch)
treef3b578f774332b45aa3e3ca5d1272bf67e034225 /arch/um/sys-ppc/shared/sysdep/sigcontext.h
parent23fc5f156bddbaaa8939a74c67dfd5bf6d07f596 (diff)
downloadlinux-aaeac66b1a02d399ec8ee63e8d617c1d601ea353.tar.xz
um: Remove ppc cruft
That code is a relict from the early days of UML. ppc support was never completed nor worked. Let's rip it out. Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/sys-ppc/shared/sysdep/sigcontext.h')
-rw-r--r--arch/um/sys-ppc/shared/sysdep/sigcontext.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/arch/um/sys-ppc/shared/sysdep/sigcontext.h b/arch/um/sys-ppc/shared/sysdep/sigcontext.h
deleted file mode 100644
index b7286f0a1e00..000000000000
--- a/arch/um/sys-ppc/shared/sysdep/sigcontext.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
- * Licensed under the GPL
- */
-
-#ifndef __SYS_SIGCONTEXT_PPC_H
-#define __SYS_SIGCONTEXT_PPC_H
-
-#define DSISR_WRITE 0x02000000
-
-#define SC_FAULT_ADDR(sc) ({ \
- struct sigcontext *_sc = (sc); \
- long retval = -1; \
- switch (_sc->regs->trap) { \
- case 0x300: \
- /* data exception */ \
- retval = _sc->regs->dar; \
- break; \
- case 0x400: \
- /* instruction exception */ \
- retval = _sc->regs->nip; \
- break; \
- default: \
- panic("SC_FAULT_ADDR: unhandled trap type\n"); \
- } \
- retval; \
- })
-
-#define SC_FAULT_WRITE(sc) ({ \
- struct sigcontext *_sc = (sc); \
- long retval = -1; \
- switch (_sc->regs->trap) { \
- case 0x300: \
- /* data exception */ \
- retval = !!(_sc->regs->dsisr & DSISR_WRITE); \
- break; \
- case 0x400: \
- /* instruction exception: not a write */ \
- retval = 0; \
- break; \
- default: \
- panic("SC_FAULT_ADDR: unhandled trap type\n"); \
- } \
- retval; \
- })
-
-#define SC_IP(sc) ((sc)->regs->nip)
-#define SC_SP(sc) ((sc)->regs->gpr[1])
-#define SEGV_IS_FIXABLE(sc) (1)
-
-#endif
-