um: kill includes of sysdep/sigcontext.h from stuff built with kernel headers
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / um / sys-x86 / shared / sysdep / sigcontext_64.h
blob60d89a2fba062b4659af23341d3f8a8bd13564f7
1 /*
2 * Copyright 2003 PathScale, Inc.
4 * Licensed under the GPL
5 */
7 #ifndef __SYSDEP_X86_64_SIGCONTEXT_H
8 #define __SYSDEP_X86_64_SIGCONTEXT_H
10 #include <generated/user_constants.h>
12 #define SC_OFFSET(sc, field) \
13 *((unsigned long *) &(((char *) (sc))[HOST_##field]))
14 #define SC_CR2(sc) SC_OFFSET(sc, SC_CR2)
15 #define SC_ERR(sc) SC_OFFSET(sc, SC_ERR)
16 #define SC_TRAPNO(sc) SC_OFFSET(sc, SC_TRAPNO)
18 #define GET_FAULTINFO_FROM_SC(fi, sc) \
19 { \
20 (fi).cr2 = SC_CR2(sc); \
21 (fi).error_code = SC_ERR(sc); \
22 (fi).trap_no = SC_TRAPNO(sc); \
25 #endif