Libc update to simplify merge.
Bumping libc files for unsupported architectures, to simplify merging. A bunch of small fixes: * in libutil update * the macro in endian.h * some undefined types due to clear separation from host. * Fix a warning for cdbr.c Some modification which were required for the new build system: * inclusion path for const.h in sconst, still hacky * Removed default malloc.c which conflicts on some occasions.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bcmp.S,v 1.3 2003/08/07 16:42:32 agc Exp $ */
|
||||
/* $NetBSD: bcmp.S,v 1.4 2011/01/25 02:38:15 matt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -32,6 +32,10 @@
|
||||
|
||||
#include "DEFS.h"
|
||||
|
||||
#ifdef LIBC_SCCS
|
||||
RCSID("$NetBSD: bcmp.S,v 1.4 2011/01/25 02:38:15 matt Exp $")
|
||||
#endif
|
||||
|
||||
/* Since "cmpc3" is not portable across VAXen, do it the hard way */
|
||||
/* still, this is four times faster than the generic C version on a uvax2 */
|
||||
|
||||
@@ -56,3 +60,4 @@ ENTRY(bcmp, 0)
|
||||
clrl %r0 # we have a match!
|
||||
9:
|
||||
ret
|
||||
END(bcmp)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bcopy.S,v 1.3 2003/08/07 16:42:32 agc Exp $ */
|
||||
/* $NetBSD: bcopy.S,v 1.4 2011/01/25 02:38:15 matt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -28,14 +28,16 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
.asciz "@(#)bcopy.s 8.1 (Berkeley) 6/4/93"
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/* bcopy(from, to, size) */
|
||||
|
||||
#include "DEFS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
/* .asciz "@(#)bcopy.s 8.1 (Berkeley) 6/4/93" */
|
||||
RCSID("$NetBSD: bcopy.S,v 1.4 2011/01/25 02:38:15 matt Exp $")
|
||||
#endif
|
||||
|
||||
|
||||
ENTRY(bcopy, R6)
|
||||
movl 4(%ap),%r1
|
||||
movl 8(%ap),%r3
|
||||
@@ -73,3 +75,4 @@ ENTRY(bcopy, R6)
|
||||
subl2 %r6,%r3
|
||||
movc3 %r6,(%r1),(%r3)
|
||||
ret
|
||||
END(bcopy)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: bzero.S,v 1.3 2003/08/07 16:42:32 agc Exp $ */
|
||||
/* $NetBSD: bzero.S,v 1.4 2011/01/25 02:38:15 matt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -28,14 +28,15 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
.asciz "@(#)bzero.s 8.1 (Berkeley) 6/4/93"
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include "DEFS.h"
|
||||
|
||||
#if defined(LIBC_SCCS)
|
||||
/* .asciz "@(#)bzero.s 8.1 (Berkeley) 6/4/93" */
|
||||
RCSID("$NetBSD: bzero.S,v 1.4 2011/01/25 02:38:15 matt Exp $")
|
||||
#endif
|
||||
|
||||
/* bzero(base, length) */
|
||||
|
||||
#include "DEFS.h"
|
||||
|
||||
ENTRY(bzero, 0)
|
||||
movl 4(%ap),%r3
|
||||
jbr 2f
|
||||
@@ -48,3 +49,4 @@ ENTRY(bzero, 0)
|
||||
jgtr 1b
|
||||
movc5 $0,(%r3),$0,8(%ap),(%r3)
|
||||
ret
|
||||
END(bzero)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ffs.S,v 1.3 2003/08/07 16:42:32 agc Exp $ */
|
||||
/* $NetBSD: ffs.S,v 1.4 2011/01/25 02:38:15 matt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -28,14 +28,15 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "DEFS.h"
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
.asciz "@(#)ffs.s 8.1 (Berkeley) 6/4/93"
|
||||
/* .asciz "@(#)ffs.s 8.1 (Berkeley) 6/4/93" */
|
||||
RCSID("$NetBSD: ffs.S,v 1.4 2011/01/25 02:38:15 matt Exp $")
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
/* bit = ffs(value) */
|
||||
|
||||
#include "DEFS.h"
|
||||
|
||||
ENTRY(ffs, 0)
|
||||
ffs $0,$32,4(%ap),%r0
|
||||
bneq 1f
|
||||
@@ -43,3 +44,4 @@ ENTRY(ffs, 0)
|
||||
1:
|
||||
incl %r0
|
||||
ret
|
||||
END(ffs)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: index.S,v 1.3 2003/08/07 16:42:32 agc Exp $ */
|
||||
/* $NetBSD: index.S,v 1.4 2011/01/25 02:38:15 matt Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -38,6 +38,10 @@
|
||||
*/
|
||||
#include "DEFS.h"
|
||||
|
||||
#ifdef LIBC_SCCS
|
||||
RCSID("$NetSBD$")
|
||||
#endif
|
||||
|
||||
/* Alas not quite twice as fast as the generic C version on a uvax2 */
|
||||
|
||||
ENTRY(index, 0)
|
||||
@@ -57,3 +61,4 @@ ENTRY(index, 0)
|
||||
jneq 3b
|
||||
decl %r0
|
||||
jbr 2b
|
||||
END(index)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: memcmp.S,v 1.3 2003/08/07 16:42:32 agc Exp $ */
|
||||
/* $NetBSD: memcmp.S,v 1.4 2011/01/25 02:38:15 matt Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
@@ -32,6 +32,10 @@
|
||||
|
||||
#include "DEFS.h"
|
||||
|
||||
#ifdef LIBC_SCCS
|
||||
RCSID("$NetBSD: memcmp.S,v 1.4 2011/01/25 02:38:15 matt Exp $")
|
||||
#endif
|
||||
|
||||
ENTRY(memcmp, 0)
|
||||
movl 12(%ap),%r0
|
||||
jeql 9f
|
||||
@@ -63,3 +67,4 @@ ENTRY(memcmp, 0)
|
||||
subl3 %r4,%r3,%r0
|
||||
9:
|
||||
ret
|
||||
END(memcmp)
|
||||
|
||||
Reference in New Issue
Block a user