mirror of
https://github.com/postgres/postgres.git
synced 2025-08-05 07:41:25 +03:00
Missed adding new univel files and removing univel subdirectory
This commit is contained in:
4
src/backend/port/dynloader/univel.c
Normal file
4
src/backend/port/dynloader/univel.c
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
/* Dummy file used for nothing at this point
|
||||||
|
*
|
||||||
|
* see univel.h
|
||||||
|
*/
|
@@ -1,34 +0,0 @@
|
|||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Makefile--
|
|
||||||
# Makefile for port/univel
|
|
||||||
#
|
|
||||||
# IDENTIFICATION
|
|
||||||
# $Header: /cvsroot/pgsql/src/backend/port/univel/Attic/Makefile,v 1.3 1997/12/20 00:26:45 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
|
|
||||||
|
|
@@ -1,35 +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
|
|
||||||
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
|
|
||||||
|
|
Reference in New Issue
Block a user