diff options
Diffstat (limited to 'config/solaris_sunc')
-rw-r--r-- | config/solaris_sunc/Makedefs | 4 | ||||
-rw-r--r-- | config/solaris_sunc/define.h | 3 | ||||
-rw-r--r-- | config/solaris_sunc/sparc.c | 37 | ||||
-rw-r--r-- | config/solaris_sunc/status | 9 |
4 files changed, 5 insertions, 48 deletions
diff --git a/config/solaris_sunc/Makedefs b/config/solaris_sunc/Makedefs index e5bb495..592b2d6 100644 --- a/config/solaris_sunc/Makedefs +++ b/config/solaris_sunc/Makedefs @@ -9,11 +9,11 @@ # GDIR directory of graphics helper library CC = cc -CFLAGS = -O -w -I/usr/openwin/include +CFLAGS = -O -w CFDYN = -KPIC RLINK = RLIBS = -lm -ldl TLIBS = -lposix4 -lpthread -XLIBS = -L /usr/openwin/lib -R/usr/openwin/lib -lX11 +XLIBS = -lX11 XPMDEFS = -DZPIPE -DSYSV GDIR = xpm diff --git a/config/solaris_sunc/define.h b/config/solaris_sunc/define.h index d4789bb..3b89670 100644 --- a/config/solaris_sunc/define.h +++ b/config/solaris_sunc/define.h @@ -4,6 +4,3 @@ #define UNIX 1 #define LoadFunc - -#define CComp "cc" -#define COpts "-I/usr/openwin/include -ldl" diff --git a/config/solaris_sunc/sparc.c b/config/solaris_sunc/sparc.c deleted file mode 100644 index b712211..0000000 --- a/config/solaris_sunc/sparc.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * coswitch for Sun-4 Sparc. - */ - -#include <sys/asm_linkage.h> -#include <sys/trap.h> - -int coswitch(old_cs, new_cs, first) -int *old_cs, *new_cs; -int first; -{ - asm("ta 0x03"); /* ST_FLUSH_WINDOWS in trap.h */ - asm("ld [%fp+0x44], %o0"); /* load old_cs into %o0 */ - asm("st %sp,[%o0]"); /* Save user stack pointer */ - asm("st %fp,[%o0+0x4]"); /* Save frame pointer */ - asm("st %i7,[%o0+0x8]"); /* Save return address */ - - if (first == 0) { /* this is the first activation */ - asm("ld [%fp+0x48], %o0"); /* load new_cs into %o0 */ - asm("ld [%o0], %o1"); /* load %o1 from cstate[0] */ - - /* Decrement new stack pointer value before loading it into sp. */ - /* The top 64 bytes of the stack are reserved for the kernel, to */ - /* save the 8 local and 8 in registers into, on context switches, */ - /* interrupts, traps, etc. */ - - asm("save %o1,-96, %sp"); /* load %sp from %o1 */ - new_context(0,0); - syserr("new_context() returned in coswitch"); - - } else { - asm("ld [%fp+0x48], %o0"); /* load new_cs into %o0 */ - asm("ld [%o0+0x4],%fp"); /* Load frame pointer */ - asm("ld [%o0+0x8],%i7"); /* Load return address */ - asm("ld [%o0],%sp"); /* Load user stack pointer */ - } -} diff --git a/config/solaris_sunc/status b/config/solaris_sunc/status index 54d26dc..ce854c2 100644 --- a/config/solaris_sunc/status +++ b/config/solaris_sunc/status @@ -4,7 +4,7 @@ System configuration: Latest Icon version: - Version 9.4.3 + Version 9.5.0 Installer: @@ -22,11 +22,8 @@ Known bugs: Comments: - Tested on Sun SPARC systems running Solaris 2.6 (WorkShop C 4.2) - and Solaris 9 (WorkShop C 5.0). - - This configuration can use pthreads for context switching. + Tested on SPARC Solaris 10 (SunOS 5.10) with Sun C 5.9. Date: - November 8, 2005 + March 26, 2010 |