CVS commit: src/lib/libc/arch/powerpc64/gen

2010-03-21 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Mar 22 01:39:11 UTC 2010

Modified Files:
src/lib/libc/arch/powerpc64/gen: __sigsetjmp14.S

Log Message:
replace kernel-only 'stmd' and 'lmd' operations in userland with equivalent
sequences of code, as done in eg, powerpc64/gen/_setjmp.S rev 1.2.

from dennis.c.fergu...@gmail.com in PR#43009.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/powerpc64/gen/__sigsetjmp14.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/powerpc64/gen/__sigsetjmp14.S
diff -u src/lib/libc/arch/powerpc64/gen/__sigsetjmp14.S:1.1 src/lib/libc/arch/powerpc64/gen/__sigsetjmp14.S:1.2
--- src/lib/libc/arch/powerpc64/gen/__sigsetjmp14.S:1.1	Fri Jul  7 21:07:35 2006
+++ src/lib/libc/arch/powerpc64/gen/__sigsetjmp14.S	Mon Mar 22 01:39:11 2010
@@ -1,11 +1,11 @@
-/*	$NetBSD: __sigsetjmp14.S,v 1.1 2006/07/07 21:07:35 ross Exp $	*/
+/*	$NetBSD: __sigsetjmp14.S,v 1.2 2010/03/22 01:39:11 mrg Exp $	*/
 
 #include 
 #include 
 
 #if defined(LIBC_SCCS)
 	.text
-	.asciz "$NetBSD: __sigsetjmp14.S,v 1.1 2006/07/07 21:07:35 ross Exp $"
+	.asciz "$NetBSD: __sigsetjmp14.S,v 1.2 2010/03/22 01:39:11 mrg Exp $"
 #endif
 
 ENTRY(__sigsetjmp14)
@@ -22,12 +22,20 @@
 	mfcr	%r12
 	mr	%r10,%r1
 	mr	%r9,%r2
-	stmd	7, 0(%r6)		# save r7-r31
+	i = 0
+	.rept	32-7
+	std	7+i,i*8(%r6)		# save r7-r31
+	i = i + 1
+	.endr
 	li	%r3,0
 	blr
 
 ENTRY(__siglongjmp14)
-	lmd	7,0(%r3)		# load r7-r31
+	i = 0
+	.rept	32-7
+	ld	7+i,i*8(%r3)		# load r7-r31
+	i = i + 1
+	.endr
 	mr	%r6,%r4
 	mtlr	%r11
 	mtcr	%r12



CVS commit: src/lib/libc/arch/powerpc64/gen

2012-11-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 07:16:05 UTC 2012

Modified Files:
src/lib/libc/arch/powerpc64/gen: syncicache.c

Log Message:
Use __arraycount(), and cast to u_int.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/arch/powerpc64/gen/syncicache.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/powerpc64/gen/syncicache.c
diff -u src/lib/libc/arch/powerpc64/gen/syncicache.c:1.1 src/lib/libc/arch/powerpc64/gen/syncicache.c:1.2
--- src/lib/libc/arch/powerpc64/gen/syncicache.c:1.1	Sat Jul  1 12:37:20 2006
+++ src/lib/libc/arch/powerpc64/gen/syncicache.c	Sat Nov 24 02:16:04 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: syncicache.c,v 1.1 2006/07/01 16:37:20 ross Exp $	*/
+/*	$NetBSD: syncicache.c,v 1.2 2012/11/24 07:16:04 christos Exp $	*/
 
 /*
  * Copyright (C) 1995-1997, 1999 Wolfgang Solfrank.
@@ -74,17 +74,16 @@ __getcachelinesize(void)
 	if (_cachelinesize)
 		return _cachelinesize;
 
-	if (sysctl(cacheinfomib, sizeof(cacheinfomib) / sizeof(cacheinfomib[0]),
-		&_cache_info, &clen, NULL, 0) == 0) {
+	if (sysctl(cacheinfomib, (u_int)__arraycount(cacheinfomib),
+	&_cache_info, &clen, NULL, 0) == 0) {
 		_cachelinesize = _cache_info.dcache_line_size;
 		return _cachelinesize;
 	}
 
 	/* Try older deprecated sysctl */
 	clen = sizeof(_cachelinesize);
-	if (sysctl(cachemib, sizeof(cachemib) / sizeof(cachemib[0]),
-		   &_cachelinesize, &clen, NULL, 0) < 0
-	|| !_cachelinesize)
+	if (sysctl(cachemib, (u_int)__arraycount(cachemib),
+	&_cachelinesize, &clen, NULL, 0) < 0 || !_cachelinesize)
 		abort();
 
 	_cache_info.dcache_size = _cachelinesize;



CVS commit: src/lib/libc/arch/powerpc64/gen

2012-11-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Nov 24 15:20:58 UTC 2012

Modified Files:
src/lib/libc/arch/powerpc64/gen: _lwp.c

Log Message:
fix lint.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/powerpc64/gen/_lwp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/powerpc64/gen/_lwp.c
diff -u src/lib/libc/arch/powerpc64/gen/_lwp.c:1.2 src/lib/libc/arch/powerpc64/gen/_lwp.c:1.3
--- src/lib/libc/arch/powerpc64/gen/_lwp.c:1.2	Wed Jul  5 14:05:45 2006
+++ src/lib/libc/arch/powerpc64/gen/_lwp.c	Sat Nov 24 10:20:58 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: _lwp.c,v 1.2 2006/07/05 18:05:45 ross Exp $	*/
+/*	$NetBSD: _lwp.c,v 1.3 2012/11/24 15:20:58 christos Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -37,7 +37,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.2 2006/07/05 18:05:45 ross Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.3 2012/11/24 15:20:58 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -46,6 +46,7 @@ __RCSID("$NetBSD: _lwp.c,v 1.2 2006/07/0
 #include 
 #include 
 
+/*ARGSUSED*/
 void
 _lwp_makecontext(ucontext_t *u, void (*start)(void *), void *arg,
 	void *private, caddr_t stack_base, size_t stack_size)
@@ -58,7 +59,7 @@ _lwp_makecontext(ucontext_t *u, void (*s
 	u->uc_stack.ss_sp = stack_base;
 	u->uc_stack.ss_size = stack_size;
 
-	sp = (void **) (stack_base + stack_size);
+	sp = (void *)(stack_base + stack_size);
 
 	u->uc_mcontext.__gregs[3] = (__greg_t) arg;		/* arg1 */
 	u->uc_mcontext.__gregs[1] = ((__greg_t) sp) - 112;	/* stack */



CVS commit: src/lib/libc/arch/powerpc64/gen

2014-08-13 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Wed Aug 13 15:41:22 UTC 2014

Modified Files:
src/lib/libc/arch/powerpc64/gen: swapcontext.S

Log Message:
[] -> ()


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/powerpc64/gen/swapcontext.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/powerpc64/gen/swapcontext.S
diff -u src/lib/libc/arch/powerpc64/gen/swapcontext.S:1.4 src/lib/libc/arch/powerpc64/gen/swapcontext.S:1.5
--- src/lib/libc/arch/powerpc64/gen/swapcontext.S:1.4	Wed Sep 12 02:00:52 2012
+++ src/lib/libc/arch/powerpc64/gen/swapcontext.S	Wed Aug 13 15:41:21 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: swapcontext.S,v 1.4 2012/09/12 02:00:52 manu Exp $	*/
+/*	$NetBSD: swapcontext.S,v 1.5 2014/08/13 15:41:21 joerg Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -33,14 +33,14 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 	.text
-	.asciz "$NetBSD: swapcontext.S,v 1.4 2012/09/12 02:00:52 manu Exp $"
+	.asciz "$NetBSD: swapcontext.S,v 1.5 2014/08/13 15:41:21 joerg Exp $"
 #endif /* LIBC_SCCS && !lint */
 
 ENTRY(swapcontext)
 	mc_off	= 56# offset of uc_mcontext
 	stdu	%r1,-SF_SZ(%r1)			# set up new stack frame
 	mflr	%r0
-	std	%r0,[SF_SZ+SF_LR](%r1)		# save link register
+	std	%r0,(SF_SZ+SF_LR)(%r1)		# save link register
 	std	%r3,SF_PARAM(%r1)		# must save oucp (was 8)
 	std	%r4,SF_PARAM+8(%r1)		# must save ucp (was 12)
 	bl	._getcontext			# getcontext(oucp)



CVS commit: src/lib/libc/arch/powerpc64/gen

2018-11-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Nov  8 16:31:46 UTC 2018

Modified Files:
src/lib/libc/arch/powerpc64/gen: fabs.c

Log Message:
powerpc64 needs fabsl too.  (Apparently no __HAVE_LONG_DOUBLE?)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/powerpc64/gen/fabs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/powerpc64/gen/fabs.c
diff -u src/lib/libc/arch/powerpc64/gen/fabs.c:1.2 src/lib/libc/arch/powerpc64/gen/fabs.c:1.3
--- src/lib/libc/arch/powerpc64/gen/fabs.c:1.2	Wed Jul  5 18:07:22 2006
+++ src/lib/libc/arch/powerpc64/gen/fabs.c	Thu Nov  8 16:31:46 2018
@@ -1,7 +1,9 @@
-/*	$NetBSD: fabs.c,v 1.2 2006/07/05 18:07:22 ross Exp $	*/
+/*	$NetBSD: fabs.c,v 1.3 2018/11/08 16:31:46 riastradh Exp $	*/
 
 #include 
 
+__strong_alias(fabsl, fabs)
+
 double
 fabs(double x)
 {