Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread/arch make pthread__sp unsigned long.
details: https://anonhg.NetBSD.org/src/rev/daa15b09ad64
branches: trunk
changeset: 761370:daa15b09ad64
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 25 19:12:04 2011 +0000
description:
make pthread__sp unsigned long.
diffstat:
lib/libpthread/arch/alpha/pthread_md.h | 6 +++---
lib/libpthread/arch/arm/pthread_md.h | 6 +++---
lib/libpthread/arch/hppa/pthread_md.h | 6 +++---
lib/libpthread/arch/i386/pthread_md.h | 6 +++---
lib/libpthread/arch/m68k/pthread_md.h | 6 +++---
lib/libpthread/arch/mips/pthread_md.h | 6 +++---
lib/libpthread/arch/powerpc/pthread_md.h | 6 +++---
lib/libpthread/arch/powerpc64/pthread_md.h | 6 +++---
lib/libpthread/arch/sh3/pthread_md.h | 6 +++---
lib/libpthread/arch/sparc/pthread_md.h | 6 +++---
lib/libpthread/arch/sparc64/pthread_md.h | 6 +++---
lib/libpthread/arch/vax/pthread_md.h | 6 +++---
lib/libpthread/arch/x86_64/pthread_md.h | 6 +++---
13 files changed, 39 insertions(+), 39 deletions(-)
diffs (286 lines):
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/alpha/pthread_md.h
--- a/lib/libpthread/arch/alpha/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/alpha/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.6 2009/05/16 22:20:40 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.7 2011/01/25 19:12:04 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -34,10 +34,10 @@
#define PTHREAD__ASM_RASOPS
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("mov $30, %0" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/arm/pthread_md.h
--- a/lib/libpthread/arch/arm/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/arm/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.5 2009/05/16 22:20:40 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.6 2011/01/25 19:12:04 christos Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -38,10 +38,10 @@
#ifndef _LIB_PTHREAD_ARM_MD_H
#define _LIB_PTHREAD_ARM_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm volatile("mov %0, sp"
: "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/hppa/pthread_md.h
--- a/lib/libpthread/arch/hppa/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/hppa/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.7 2009/05/16 22:20:40 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.8 2011/01/25 19:12:05 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -36,10 +36,10 @@
#define PTHREAD__ASM_RASOPS
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- register long sp __asm("r30");
+ register unsigned long sp __asm("r30");
return sp;
}
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/i386/pthread_md.h
--- a/lib/libpthread/arch/i386/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/i386/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.17 2009/05/16 22:20:40 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.18 2011/01/25 19:12:05 christos Exp $ */
/*-
* Copyright (c) 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -35,10 +35,10 @@
#include <sys/ucontext.h>
#include <ucontext.h>
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("movl %%esp, %0" : "=g" (ret));
return ret;
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/m68k/pthread_md.h
--- a/lib/libpthread/arch/m68k/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/m68k/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.7 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.8 2011/01/25 19:12:05 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -32,10 +32,10 @@
#ifndef _LIB_PTHREAD_M68K_MD_H
#define _LIB_PTHREAD_M68K_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("movl %%sp, %0" : "=g" (ret));
return ret;
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/mips/pthread_md.h
--- a/lib/libpthread/arch/mips/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/mips/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.8 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.9 2011/01/25 19:12:05 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -32,10 +32,10 @@
#ifndef _LIB_PTHREAD_MIPS_MD_H
#define _LIB_PTHREAD_MIPS_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("move %0, $sp" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/powerpc/pthread_md.h
--- a/lib/libpthread/arch/powerpc/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/powerpc/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.6 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.7 2011/01/25 19:12:05 christos Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -38,10 +38,10 @@
#ifndef _LIB_PTHREAD_POWERPC_MD_H
#define _LIB_PTHREAD_POWERPC_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("mr %0,1" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/powerpc64/pthread_md.h
--- a/lib/libpthread/arch/powerpc64/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/powerpc64/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.2 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.3 2011/01/25 19:12:05 christos Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -38,10 +38,10 @@
#ifndef _LIB_PTHREAD_POWERPC_MD_H
#define _LIB_PTHREAD_POWERPC_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("mr %0,1" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/sh3/pthread_md.h
--- a/lib/libpthread/arch/sh3/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/sh3/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.7 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.8 2011/01/25 19:12:06 christos Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -38,10 +38,10 @@
#ifndef _LIB_PTHREAD_SH3_MD_H
#define _LIB_PTHREAD_SH3_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("mov r15, %0" : "=r" (ret));
return ret;
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/sparc/pthread_md.h
--- a/lib/libpthread/arch/sparc/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/sparc/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.7 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.8 2011/01/25 19:12:06 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -32,10 +32,10 @@
/*
* pthread__sp used for identifying thread
*/
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("mov %%sp, %0" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/sparc64/pthread_md.h
--- a/lib/libpthread/arch/sparc64/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/sparc64/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.6 2009/05/16 22:20:41 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.7 2011/01/25 19:12:06 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -32,10 +32,10 @@
/*
* pthread__sp used for identifying thread
*/
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("mov %%sp, %0" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/vax/pthread_md.h
--- a/lib/libpthread/arch/vax/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/vax/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.7 2009/05/16 22:20:42 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.8 2011/01/25 19:12:06 christos Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -32,10 +32,10 @@
#ifndef _LIB_PTHREAD_VAX_MD_H
#define _LIB_PTHREAD_VAX_MD_H
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("movl %%sp,%0" : "=r" (ret));
diff -r 8aa45ab16b76 -r daa15b09ad64 lib/libpthread/arch/x86_64/pthread_md.h
--- a/lib/libpthread/arch/x86_64/pthread_md.h Tue Jan 25 17:37:00 2011 +0000
+++ b/lib/libpthread/arch/x86_64/pthread_md.h Tue Jan 25 19:12:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_md.h,v 1.11 2009/05/16 22:23:45 ad Exp $ */
+/* $NetBSD: pthread_md.h,v 1.12 2011/01/25 19:12:06 christos Exp $ */
/*-
* Copyright (c) 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -36,10 +36,10 @@
#include <sys/ucontext.h>
-static inline long
+static inline unsigned long
pthread__sp(void)
{
- long ret;
+ unsigned long ret;
__asm("movq %%rsp, %0" : "=g" (ret));
return ret;
Home |
Main Index |
Thread Index |
Old Index