Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
55c4dce3
Commit
55c4dce3
authored
May 08, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
4ce6b618
8cab22d6
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
50 deletions
+31
-50
arch/sparc64/kernel/Makefile
arch/sparc64/kernel/Makefile
+2
-10
arch/sparc64/kernel/signal.c
arch/sparc64/kernel/signal.c
+4
-0
arch/sparc64/kernel/signal32.c
arch/sparc64/kernel/signal32.c
+8
-0
arch/sparc64/lib/Makefile
arch/sparc64/lib/Makefile
+2
-7
arch/sparc64/mm/Makefile
arch/sparc64/mm/Makefile
+2
-10
arch/sparc64/prom/Makefile
arch/sparc64/prom/Makefile
+3
-11
arch/sparc64/solaris/Makefile
arch/sparc64/solaris/Makefile
+4
-7
include/math-emu/op-1.h
include/math-emu/op-1.h
+1
-0
include/math-emu/op-2.h
include/math-emu/op-2.h
+1
-0
include/math-emu/op-4.h
include/math-emu/op-4.h
+1
-0
include/math-emu/op-common.h
include/math-emu/op-common.h
+3
-5
No files found.
arch/sparc64/kernel/Makefile
View file @
55c4dce3
# $Id: Makefile,v 1.70 2002/02/09 19:49:30 davem Exp $
# Makefile for the linux kernel.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...
SH
=
$(CONFIG_SHELL)
.S.s
:
$(CPP)
$(AFLAGS)
-ansi
$<
-o
$*
.s
.S.o
:
$(CC)
$(AFLAGS)
-ansi
-c
$<
-o
$*
.o
USE_STANDARD_AS_RULE
:=
true
EXTRA_AFLAGS
:=
-ansi
all
:
kernel.o head.o init_task.o
...
...
arch/sparc64/kernel/signal.c
View file @
55c4dce3
...
...
@@ -411,6 +411,7 @@ void do_rt_sigreturn(struct pt_regs *regs)
struct
rt_signal_frame
*
sf
;
unsigned
long
tpc
,
tnpc
,
tstate
;
__siginfo_fpu_t
*
fpu_save
;
mm_segment_t
old_fs
;
sigset_t
set
;
stack_t
st
;
int
err
;
...
...
@@ -455,7 +456,10 @@ void do_rt_sigreturn(struct pt_regs *regs)
/* It is more difficult to avoid calling this function than to
call it and ignore errors. */
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
do_sigaltstack
(
&
st
,
NULL
,
(
unsigned
long
)
sf
);
set_fs
(
old_fs
);
sigdelsetmask
(
&
set
,
~
_BLOCKABLE
);
spin_lock_irq
(
&
current
->
sigmask_lock
);
...
...
arch/sparc64/kernel/signal32.c
View file @
55c4dce3
...
...
@@ -396,6 +396,7 @@ asmlinkage void do_rt_sigreturn32(struct pt_regs *regs)
struct
rt_signal_frame32
*
sf
;
unsigned
int
psr
;
unsigned
pc
,
npc
,
fpu_save
;
mm_segment_t
old_fs
;
sigset_t
set
;
sigset_t32
seta
;
stack_t
st
;
...
...
@@ -453,7 +454,10 @@ asmlinkage void do_rt_sigreturn32(struct pt_regs *regs)
/* It is more difficult to avoid calling this function than to
call it and ignore errors. */
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
do_sigaltstack
(
&
st
,
NULL
,
(
unsigned
long
)
sf
);
set_fs
(
old_fs
);
switch
(
_NSIG_WORDS
)
{
case
4
:
set
.
sig
[
3
]
=
seta
.
sig
[
6
]
+
(((
long
)
seta
.
sig
[
7
])
<<
32
);
...
...
@@ -1031,6 +1035,7 @@ svr4_getcontext(svr4_ucontext_t *uc, struct pt_regs *regs)
asmlinkage
int
svr4_setcontext
(
svr4_ucontext_t
*
c
,
struct
pt_regs
*
regs
)
{
svr4_gregset_t
*
gr
;
mm_segment_t
old_fs
;
u32
pc
,
npc
,
psr
;
sigset_t
set
;
svr4_sigset_t
setv
;
...
...
@@ -1086,7 +1091,10 @@ asmlinkage int svr4_setcontext(svr4_ucontext_t *c, struct pt_regs *regs)
/* It is more difficult to avoid calling this function than to
call it and ignore errors. */
old_fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
do_sigaltstack
(
&
st
,
NULL
,
regs
->
u_regs
[
UREG_I6
]);
set_fs
(
old_fs
);
sigdelsetmask
(
&
set
,
~
_BLOCKABLE
);
spin_lock_irq
(
&
current
->
sigmask_lock
);
...
...
arch/sparc64/lib/Makefile
View file @
55c4dce3
...
...
@@ -2,13 +2,8 @@
# Makefile for Sparc64 library files..
#
.S.s
:
$(CPP)
$(AFLAGS)
-ansi
$<
-o
$*
.s
.S.o
:
$(CC)
$(AFLAGS)
-ansi
-c
$<
-o
$*
.o
CFLAGS
:=
$(CFLAGS)
USE_STANDARD_AS_RULE
:=
true
EXTRA_AFLAGS
:=
-ansi
L_TARGET
=
lib.a
obj-y
:=
PeeCeeI.o blockops.o debuglocks.o strlen.o strncmp.o
\
...
...
arch/sparc64/mm/Makefile
View file @
55c4dce3
# $Id: Makefile,v 1.8 2000/12/14 22:57:25 davem Exp $
# Makefile for the linux Sparc64-specific parts of the memory manager.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definition is now in the main makefile...
.S.s
:
$(CPP)
$(AFLAGS)
-ansi
$<
-o
$*
.s
.S.o
:
$(CC)
$(AFLAGS)
-ansi
-c
$<
-o
$*
.o
USE_STANDARD_AS_RULE
:=
true
EXTRA_AFLAGS
:=
-ansi
O_TARGET
:=
mm.o
obj-y
:=
ultra.o fault.o init.o generic.o extable.o modutil.o
...
...
arch/sparc64/prom/Makefile
View file @
55c4dce3
...
...
@@ -2,22 +2,14 @@
# Makefile for the Sun Boot PROM interface library under
# Linux.
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...
USE_STANDARD_AS_RULE
:=
true
EXTRA_AFLAGS
:=
-ansi
L_TARGET
=
promlib.a
obj-y
:=
bootstr.o devops.o init.o memory.o misc.o
\
tree.o console.o printf.o p1275.o map.o
.S.s
:
$(CPP)
$(AFLAGS)
-ansi
$<
-o
$*
.s
.S.o
:
$(CC)
$(AFLAGS)
-ansi
-c
$<
-o
$*
.o
include
$(TOPDIR)/Rules.make
%.o
:
%.c
...
...
arch/sparc64/solaris/Makefile
View file @
55c4dce3
...
...
@@ -2,16 +2,13 @@
# Makefile for the Solaris binary emulation.
#
USE_STANDARD_AS_RULE
:=
true
EXTRA_AFLAGS
:=
-ansi
ifeq
($(CONFIG_SOLARIS_EMUL),m)
CPPFLAGS
=
$(MODFLAGS)
EXTRA_AFLAGS
+
=
$(MODFLAGS)
endif
.S.s
:
$(CPP)
$(AFLAGS)
$(CPPFLAGS)
-ansi
$<
-o
$*
.s
.S.o
:
$(CC)
$(AFLAGS)
$(CPPFLAGS)
-ansi
-c
$<
-o
$*
.o
solaris-objs
:=
entry64.o fs.o misc.o signal.o systbl.o socket.o
\
ioctl.o ipc.o socksys.o timod.o
...
...
include/math-emu/op-1.h
View file @
55c4dce3
...
...
@@ -58,6 +58,7 @@
#define _FP_FRAC_NEGP_1(X) ((_FP_WS_TYPE)X##_f < 0)
#define _FP_FRAC_ZEROP_1(X) (X##_f == 0)
#define _FP_FRAC_OVERP_1(fs,X) (X##_f & _FP_OVERFLOW_##fs)
#define _FP_FRAC_CLEAR_OVERP_1(fs,X) (X##_f &= ~_FP_OVERFLOW_##fs)
#define _FP_FRAC_EQ_1(X, Y) (X##_f == Y##_f)
#define _FP_FRAC_GE_1(X, Y) (X##_f >= Y##_f)
#define _FP_FRAC_GT_1(X, Y) (X##_f > Y##_f)
...
...
include/math-emu/op-2.h
View file @
55c4dce3
...
...
@@ -114,6 +114,7 @@
#define _FP_FRAC_NEGP_2(X) ((_FP_WS_TYPE)X##_f1 < 0)
#define _FP_FRAC_ZEROP_2(X) ((X##_f1 | X##_f0) == 0)
#define _FP_FRAC_OVERP_2(fs,X) (_FP_FRAC_HIGH_##fs(X) & _FP_OVERFLOW_##fs)
#define _FP_FRAC_CLEAR_OVERP_2(fs,X) (_FP_FRAC_HIGH_##fs(X) &= ~_FP_OVERFLOW_##fs)
#define _FP_FRAC_EQ_2(X, Y) (X##_f1 == Y##_f1 && X##_f0 == Y##_f0)
#define _FP_FRAC_GT_2(X, Y) \
(X##_f1 > Y##_f1 || (X##_f1 == Y##_f1 && X##_f0 > Y##_f0))
...
...
include/math-emu/op-4.h
View file @
55c4dce3
...
...
@@ -132,6 +132,7 @@
#define _FP_FRAC_ZEROP_4(X) ((X##_f[0] | X##_f[1] | X##_f[2] | X##_f[3]) == 0)
#define _FP_FRAC_NEGP_4(X) ((_FP_WS_TYPE)X##_f[3] < 0)
#define _FP_FRAC_OVERP_4(fs,X) (_FP_FRAC_HIGH_##fs(X) & _FP_OVERFLOW_##fs)
#define _FP_FRAC_CLEAR_OVERP_4(fs,X) (_FP_FRAC_HIGH_##fs(X) &= ~_FP_OVERFLOW_##fs)
#define _FP_FRAC_EQ_4(X,Y) \
(X##_f[0] == Y##_f[0] && X##_f[1] == Y##_f[1] \
...
...
include/math-emu/op-common.h
View file @
55c4dce3
...
...
@@ -97,11 +97,10 @@ do { \
_FP_ROUND(wc, X); \
if (_FP_FRAC_OVERP_##wc(fs, X)) \
{ \
_FP_FRAC_
SRL_##wc(X, (_FP_WORKBITS+1));
\
_FP_FRAC_
CLEAR_OVERP_##wc(fs, X);
\
X##_e++; \
} \
else \
_FP_FRAC_SRL_##wc(X, _FP_WORKBITS); \
_FP_FRAC_SRL_##wc(X, _FP_WORKBITS); \
if (X##_e >= _FP_EXPMAX_##fs) \
{ \
/* overflow */
\
...
...
@@ -780,9 +779,8 @@ do { \
X##_e -= (_FP_W_TYPE_SIZE - rsize); \
X##_e = rsize - X##_e - 1; \
\
r &= ~((rtype)1 << X##_e); \
if (_FP_FRACBITS_##fs < rsize && _FP_WFRACBITS_##fs < X##_e) \
__FP_FRAC_SRS_1(r, (X##_e - _FP_WFRACBITS_##fs), rsize); \
__FP_FRAC_SRS_1(r, (X##_e - _FP_WFRACBITS_##fs
+ 1
), rsize); \
_FP_FRAC_DISASSEMBLE_##wc(X, ((unsigned rtype)r), rsize); \
if ((_FP_WFRACBITS_##fs - X##_e - 1) > 0) \
_FP_FRAC_SLL_##wc(X, (_FP_WFRACBITS_##fs - X##_e - 1)); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment