Johnny Billquist | 10 Dec 11:24 2007
Picon

Re: vax needs atomic ops

Well, if someone can fix the latest gcc, which broke the VAX again, I could 
maybe look at this.

(But why do you want compare-and-swap? Why wouldn't compare-and-set suffice?)

	Johnny

Andrew Doran skrev:
> Hi,
> 
> We're nearly ready with atomic ops in the kernel, however the code for vax
> needs to be written. The minimum that needs to be provided is an atomic
> compare and swap function and the rest can be provided by C code.
> 
> There is already and atomic compare and _set_, for the reader/writer locks
> in lock_stubs.S. The description of how the CAS function should behave is
> below. It needs to be known by a few different names, this is from the arm
> port:
> 
> STRONG_ALIAS(_atomic_cas_ulong,_lock_cas)
> STRONG_ALIAS(atomic_cas_ulong,_lock_cas)
> STRONG_ALIAS(_atomic_cas_32,_lock_cas)
> STRONG_ALIAS(atomic_cas_32,_lock_cas)
> STRONG_ALIAS(_atomic_cas_uint,_lock_cas)
> STRONG_ALIAS(atomic_cas_uint,_lock_cas)
> STRONG_ALIAS(_atomic_cas_ptr,_lock_cas)
> STRONG_ALIAS(atomic_cas_ptr,_lock_cas)
> 
> Any takers?
> 
(Continue reading)

Kurt Schreiner | 31 Dec 15:18 2007
Picon
Picon

sha512.c:490: internal compiler error


Hi,

trying to cross compile -current on i386 for vax I run into the
following. There are other reports of "internal compiler error"
in the mailing lists, but not relating to openssl/.../sha512.c.
I've successfully compiled i386/sparc/sparc64 and alpha on this
machine today, so I think there are no problems w/ the 2 512MB
RAM dimms...

/u/NetBSD/src/crypto/dist/openssl/crypto/sha/sha512.c: In function 'sha512_block':
/u/NetBSD/src/crypto/dist/openssl/crypto/sha/sha512.c:490: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.NetBSD.org/Misc/send-pr.html> for instructions.

*** Failed target:  sha512.o
*** Failed command: /u/NetBSD/hshutti/vax/TOOLS/bin/vax--netbsdelf-gcc -O1 -fgcse
-fstrength-reduce -fgcse-after-reload -pipe -Werror -fstack-protector -Wstack-protector --param
ssp-buffer-size=1 -D_FORTIFY_SOURCE=2 -Dlibcrypto -I.
-I/u/NetBSD/src/crypto/dist/openssl/crypto -I/u/NetBSD/src/crypto/dist/openssl
-DOPENSSLDIR=\"/etc/openssl\" -DENGINESDIR=\"/usr/lib/openssl\" -DDSO_DLFCN -DHAVE_DLFCN_H
-I/u/NetBSD/src/crypto/dist/openssl/crypto -I/u/NetBSD/src/crypto/dist/openssl/crypto/bn
-I/u/NetBSD/src/lib/libcrypto/arch/vax -nostdinc -isystem
/u/NetBSD/hshutti/vax/dest/usr/include -c -I/u/NetBSD/src/crypto/dist/openssl/crypto/sha
/u/NetBSD/src/crypto/dist/openssl/crypto/sha/sha512.c -o sha512.o
*** Error code 1

Stop.
(Continue reading)


Gmane