Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nathanw_sa]: src/lib/libpthread/arch/sparc Add _UC_USER to genassym.cf a...
details: https://anonhg.NetBSD.org/src/rev/943011adc72a
branches: nathanw_sa
changeset: 506508:943011adc72a
user: uwe <uwe%NetBSD.org@localhost>
date: Fri Nov 29 16:01:01 2002 +0000
description:
Add _UC_USER to genassym.cf and use it instead of hardcoded magic number.
diffstat:
lib/libpthread/arch/sparc/_context_u.S | 12 +++++-------
lib/libpthread/arch/sparc/genassym.cf | 3 ++-
2 files changed, 7 insertions(+), 8 deletions(-)
diffs (59 lines):
diff -r 4379143b2497 -r 943011adc72a lib/libpthread/arch/sparc/_context_u.S
--- a/lib/libpthread/arch/sparc/_context_u.S Fri Nov 29 15:40:50 2002 +0000
+++ b/lib/libpthread/arch/sparc/_context_u.S Fri Nov 29 16:01:01 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _context_u.S,v 1.1.2.2 2002/11/28 17:18:01 uwe Exp $ */
+/* $NetBSD: _context_u.S,v 1.1.2.3 2002/11/29 16:01:02 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -56,12 +56,12 @@
add %i7, 12, %l0 ; \
st %l0, [uc + UC_GREG + _REG_nPC * 4] ; \
\
- set 0x40000000 | _UC_CPU, %l1 ; \
+ set _UC_CPU | _UC_USER, %l1 ; \
st %l1, [uc + UC_FLAGS]
#define SETC(uc) \
ld [uc + UC_FLAGS], %l0 ; \
- set 0x40000000, %l1 ; \
+ set _UC_USER, %l1 ; \
btst %l1, %l0 ; \
bz 1f ; \
nop ; \
@@ -87,15 +87,13 @@
ENTRY(_setcontext_u)
save %sp, -CCFSZ, %sp
FLUSHW
- mov %i0, %o0
- SETC(%o0)
+ SETC(%i0)
NOTREACHED
ENTRY(_swapcontext_u)
save %sp, -CCFSZ, %sp
FLUSHW
GETC(%i0)
- mov %i1, %o0
- SETC(%o0)
+ SETC(%i1)
NOTREACHED
diff -r 4379143b2497 -r 943011adc72a lib/libpthread/arch/sparc/genassym.cf
--- a/lib/libpthread/arch/sparc/genassym.cf Fri Nov 29 15:40:50 2002 +0000
+++ b/lib/libpthread/arch/sparc/genassym.cf Fri Nov 29 16:01:01 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: genassym.cf,v 1.1.2.1 2002/11/23 14:14:47 martin Exp $
+# $NetBSD: genassym.cf,v 1.1.2.2 2002/11/29 16:01:01 uwe Exp $
include <ucontext.h>
@@ -25,6 +25,7 @@
define PT_STATE_RECYCLABLE PT_STATE_RECYCLABLE
define STACKSPACE STACKSPACE
define _UC_USER_BIT _UC_USER_BIT
+define _UC_USER _UC_USER
define _UC_CPU _UC_CPU
define _UC_FPU _UC_FPU
Home |
Main Index |
Thread Index |
Old Index