From 6361ac88b9586197a60b39f90fdc9e9ae7a19eca Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Tue, 13 Jan 1998 15:00:22 +0000 Subject: Work on getting the i386_solaris compile to work ... --- src/backend/port/i386_solaris/Makefile | 34 ---------------------------------- src/backend/port/i386_solaris/tas.s | 33 --------------------------------- src/backend/port/tas/i386_solaris.s | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 67 deletions(-) delete mode 100644 src/backend/port/i386_solaris/Makefile delete mode 100644 src/backend/port/i386_solaris/tas.s create mode 100644 src/backend/port/tas/i386_solaris.s (limited to 'src') diff --git a/src/backend/port/i386_solaris/Makefile b/src/backend/port/i386_solaris/Makefile deleted file mode 100644 index 8a2a579083c..00000000000 --- a/src/backend/port/i386_solaris/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -#------------------------------------------------------------------------- -# -# Makefile-- -# Makefile for port/i386_solaris -# -# IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/port/i386_solaris/Attic/Makefile,v 1.4 1997/12/20 00:25:41 scrappy Exp $ -# -#------------------------------------------------------------------------- - -SRCDIR = ../../.. -include ../../../Makefile.global - -INCLUDE_OPT = -I../.. - -CFLAGS+=$(INCLUDE_OPT) - -OBJS = tas.o - -all: SUBSYS.o - -SUBSYS.o: $(OBJS) - $(LD) -r -o SUBSYS.o $(OBJS) - -depend dep: - $(CC) -MM $(INCLUDE_OPT) *.c >depend - -clean: - rm -f SUBSYS.o $(OBJS) - -ifeq (depend,$(wildcard depend)) -include depend -endif - diff --git a/src/backend/port/i386_solaris/tas.s b/src/backend/port/i386_solaris/tas.s deleted file mode 100644 index db8116dd8ff..00000000000 --- a/src/backend/port/i386_solaris/tas.s +++ /dev/null @@ -1,33 +0,0 @@ -/============================================================================= -/ tas.s -- test and set lock for i386_solaris -/============================================================================= - - .file "tas.s" - .text - .align 16 -.L1.text: - - .globl tas -tas: - pushl %ebp /save prev base pointer - movl %esp,%ebp /new base pointer - pushl %ebx /save prev bx - movl 8(%ebp),%ebx /load bx with address of lock - movl $255,%eax /put something in ax - xchgb %al,(%ebx) /swap lock value with "0" - cmpb $0,%al /did we get the lock? - jne .Locked - subl %eax,%eax /yes, we got it -- return 0 - jmp .Finish - .align 4 -.Locked: - movl $1,%eax /no, we didn't get it - return 1 -.Finish: - popl %ebx /restore prev bx - movl %ebp,%esp /restore stack state - popl %ebp - ret /return - .align 4 - .type tas,@function - .size tas,.-tas - diff --git a/src/backend/port/tas/i386_solaris.s b/src/backend/port/tas/i386_solaris.s new file mode 100644 index 00000000000..db8116dd8ff --- /dev/null +++ b/src/backend/port/tas/i386_solaris.s @@ -0,0 +1,33 @@ +/============================================================================= +/ tas.s -- test and set lock for i386_solaris +/============================================================================= + + .file "tas.s" + .text + .align 16 +.L1.text: + + .globl tas +tas: + pushl %ebp /save prev base pointer + movl %esp,%ebp /new base pointer + pushl %ebx /save prev bx + movl 8(%ebp),%ebx /load bx with address of lock + movl $255,%eax /put something in ax + xchgb %al,(%ebx) /swap lock value with "0" + cmpb $0,%al /did we get the lock? + jne .Locked + subl %eax,%eax /yes, we got it -- return 0 + jmp .Finish + .align 4 +.Locked: + movl $1,%eax /no, we didn't get it - return 1 +.Finish: + popl %ebx /restore prev bx + movl %ebp,%esp /restore stack state + popl %ebp + ret /return + .align 4 + .type tas,@function + .size tas,.-tas + -- cgit v1.2.3