Changeset bd4cb06 in git
- Timestamp:
- Jun 18, 2020, 4:13:16 PM (3 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 4c1fc06f2d81e12a8e75a5419444cb157fbe45e9
- Parents:
- 29b4ca5d4228a541041f482cfb466f618a3201bd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
r29b4ca rbd4cb06 5 5 * ABSTRACT - interupt handling 6 6 */ 7 8 #ifndef _GNU_SOURCE 9 #define _GNU_SOURCE 10 #endif 11 7 12 #include "kernel/mod2.h" 8 13 … … 155 160 156 161 /*---------------------------------------------------------------------*/ 157 #if defined(__linux__) && defined(__i386) 158 #if !defined(HAVE_SIGCONTEXT) && !defined(HAVE_ASM_SIGCONTEXT_H) 159 // we need the following structure sigcontext_struct. 160 // if configure finds asm/singcontext.h we assume 161 // that this file contains the structure and is included 162 // via signal.h 163 struct sigcontext_struct { 164 unsigned short gs, __gsh; 165 unsigned short fs, __fsh; 166 unsigned short es, __esh; 167 unsigned short ds, __dsh; 168 unsigned long edi; 169 unsigned long esi; 170 unsigned long ebp; 171 unsigned long esp; 172 unsigned long ebx; 173 unsigned long edx; 174 unsigned long ecx; 175 unsigned long eax; 176 unsigned long trapno; 177 unsigned long err; 178 unsigned long eip; 179 unsigned short cs, __csh; 180 unsigned long eflags; 181 unsigned long esp_at_signal; 182 unsigned short ss, __ssh; 183 unsigned long i387; 184 unsigned long oldmask; 185 unsigned long cr2; 186 }; 187 #endif 188 #define HAVE_SIGSTRUCT 189 typedef struct sigcontext_struct sigcontext; 190 #endif 191 192 #if defined(__linux__) && defined(__amd64) 193 #define HAVE_SIGSTRUCT 194 #endif 195 196 197 #if defined(HAVE_SIGSTRUCT) 162 #if defined(__linux__) && (defined(__i386) || defined(__amd64)) 198 163 /*2---------------------------------------------------------------------*/ 199 164 /**
Note: See TracChangeset
for help on using the changeset viewer.