summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/unix/rtems/score/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/unix/rtems/score/cpu.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpukit/score/cpu/unix/rtems/score/cpu.h b/cpukit/score/cpu/unix/rtems/score/cpu.h
index 75eb07af74..698d900515 100644
--- a/cpukit/score/cpu/unix/rtems/score/cpu.h
+++ b/cpukit/score/cpu/unix/rtems/score/cpu.h
@@ -378,7 +378,7 @@ extern "C" {
#endif
/*
- * For Linux 1.1
+ * For i386 targets
*/
#ifdef RTEMS_UNIXLIB
@@ -389,7 +389,18 @@ extern "C" {
#define ESP_OFF 3
#define ESI_OFF 4
#define EDI_OFF 5
+#elif defined(__CYGWIN__)
+#define EAX_OFF 0
+#define EBX_OFF 1
+#define ECX_OFF 2
+#define EDX_OFF 3
+#define ESI_OFF 4
+#define EDI_OFF 5
+#define EBP_OFF 6
+#define ESP_OFF 7
+#define RET_OFF 8
#else
+/* Linux */
#define EBX_OFF 0
#define ESI_OFF 1
#define EDI_OFF 2