diff options
Diffstat (limited to 'config/hurd')
-rw-r--r-- | config/hurd/Makedefs | 19 | ||||
-rw-r--r-- | config/hurd/define.h | 9 | ||||
-rw-r--r-- | config/hurd/rswitch.c | 27 | ||||
-rw-r--r-- | config/hurd/status | 28 |
4 files changed, 83 insertions, 0 deletions
diff --git a/config/hurd/Makedefs b/config/hurd/Makedefs new file mode 100644 index 0000000..97e63e3 --- /dev/null +++ b/config/hurd/Makedefs @@ -0,0 +1,19 @@ +# CC C compiler +# CFLAGS flags for building C files +# CFDYN additional flags for dynamic functions +# RLINK flags for linking run-time system +# RLIBS libraries to link with run-time system +# TLIBS libraries to link for POSIX threads +# XLIBS libraries to link for graphics +# XPMDEFS definitions for building XPM library +# GDIR directory of graphics helper library + +CC = gcc +CFLAGS = -O +CFDYN = -fPIC +RLINK = -Wl,-E +RLIBS = -lm -ldl +TLIBS = +XLIBS = -L/usr/X11R6/lib -lX11 +XPMDEFS = -DZPIPE +GDIR = xpm diff --git a/config/hurd/define.h b/config/hurd/define.h new file mode 100644 index 0000000..5bbb3e0 --- /dev/null +++ b/config/hurd/define.h @@ -0,0 +1,9 @@ +/* + * Icon configuration file for the GNU Hurd system + */ + +#define UNIX 1 +#define LoadFunc + +#define CComp "gcc" +#define COpts "-O -fomit-frame-pointer" diff --git a/config/hurd/rswitch.c b/config/hurd/rswitch.c new file mode 100644 index 0000000..4a9def0 --- /dev/null +++ b/config/hurd/rswitch.c @@ -0,0 +1,27 @@ +/* + * This is the co-expression context switch for the GNU system. + */ + +/* + * coswitch + */ + +coswitch(old_cs, new_cs, first) +int *old_cs, *new_cs; +int first; + { + asm(" movl 8(%ebp),%eax"); + asm(" movl %esp,0(%eax)"); + asm(" movl %ebp,4(%eax)"); + asm(" movl 12(%ebp),%eax"); + if (first == 0) { /* this is the first activation */ + asm(" movl 0(%eax),%esp"); + asm(" movl $0,%ebp"); + new_context(0, 0); + syserr("interp() returned in coswitch"); + } + else { + asm(" movl 0(%eax),%esp"); + asm(" movl 4(%eax),%ebp"); + } + } diff --git a/config/hurd/status b/config/hurd/status new file mode 100644 index 0000000..91eaeb5 --- /dev/null +++ b/config/hurd/status @@ -0,0 +1,28 @@ +System configuration: + + Intel architecture running the GNU system + +Latest Icon version: + + Version 9.4.0 + +Installer: + + Marcus Brinkmann + The Debian project + +Missing features: + + None + +Known bugs: + + None + +Comments: + + Tested under Debian GNU/Hurd. + +Date: + + August 9, 2001 |