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
Kirill Smelkov
linux
Commits
b0f875af
Commit
b0f875af
authored
Sep 13, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
a14813a3
72c7b226
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
13 deletions
+26
-13
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+4
-3
arch/alpha/kernel/signal.c
arch/alpha/kernel/signal.c
+14
-4
arch/alpha/kernel/systbls.S
arch/alpha/kernel/systbls.S
+1
-0
include/asm-alpha/bitops.h
include/asm-alpha/bitops.h
+2
-2
include/asm-alpha/compiler.h
include/asm-alpha/compiler.h
+3
-3
include/asm-alpha/unistd.h
include/asm-alpha/unistd.h
+2
-1
No files found.
arch/alpha/kernel/osf_sys.c
View file @
b0f875af
...
...
@@ -1053,9 +1053,10 @@ osf_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp,
ret
=
0
;
}
set_fd_set
(
n
,
inp
->
fds_bits
,
fds
.
res_in
);
set_fd_set
(
n
,
outp
->
fds_bits
,
fds
.
res_out
);
set_fd_set
(
n
,
exp
->
fds_bits
,
fds
.
res_ex
);
if
(
set_fd_set
(
n
,
inp
->
fds_bits
,
fds
.
res_in
)
||
set_fd_set
(
n
,
outp
->
fds_bits
,
fds
.
res_out
)
||
set_fd_set
(
n
,
exp
->
fds_bits
,
fds
.
res_ex
))
ret
=
-
EFAULT
;
out:
kfree
(
bits
);
...
...
arch/alpha/kernel/signal.c
View file @
b0f875af
...
...
@@ -145,7 +145,7 @@ sys_rt_sigaction(int sig, const struct sigaction __user *act,
* Atomically swap in the new signal mask, and wait for a signal.
*/
asmlinkage
int
do_sigsuspend
(
old_sigset_t
mask
,
struct
pt_regs
*
reg
,
struct
switch_stack
*
sw
)
do_sigsuspend
(
old_sigset_t
mask
,
struct
pt_regs
*
reg
s
,
struct
switch_stack
*
sw
)
{
sigset_t
oldset
;
...
...
@@ -156,17 +156,22 @@ do_sigsuspend(old_sigset_t mask, struct pt_regs *reg, struct switch_stack *sw)
recalc_sigpending
();
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
/* Indicate EINTR on return from any possible signal handler,
which will not come back through here, but via sigreturn. */
regs
->
r0
=
EINTR
;
regs
->
r19
=
1
;
while
(
1
)
{
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule
();
if
(
do_signal
(
&
oldset
,
reg
,
sw
,
0
,
0
))
if
(
do_signal
(
&
oldset
,
reg
s
,
sw
,
0
,
0
))
return
-
EINTR
;
}
}
asmlinkage
int
do_rt_sigsuspend
(
sigset_t
__user
*
uset
,
size_t
sigsetsize
,
struct
pt_regs
*
reg
,
struct
switch_stack
*
sw
)
struct
pt_regs
*
reg
s
,
struct
switch_stack
*
sw
)
{
sigset_t
oldset
,
set
;
...
...
@@ -183,10 +188,15 @@ do_rt_sigsuspend(sigset_t __user *uset, size_t sigsetsize,
recalc_sigpending
();
spin_unlock_irq
(
&
current
->
sighand
->
siglock
);
/* Indicate EINTR on return from any possible signal handler,
which will not come back through here, but via sigreturn. */
regs
->
r0
=
EINTR
;
regs
->
r19
=
1
;
while
(
1
)
{
current
->
state
=
TASK_INTERRUPTIBLE
;
schedule
();
if
(
do_signal
(
&
oldset
,
reg
,
sw
,
0
,
0
))
if
(
do_signal
(
&
oldset
,
reg
s
,
sw
,
0
,
0
))
return
-
EINTR
;
}
}
...
...
arch/alpha/kernel/systbls.S
View file @
b0f875af
...
...
@@ -457,6 +457,7 @@ sys_call_table:
.
quad
sys_mq_timedreceive
/*
435
*/
.
quad
sys_mq_notify
.
quad
sys_mq_getsetattr
.
quad
sys_waitid
.
size
sys_call_table
,
.
-
sys_call_table
.
type
sys_call_table
,
@
object
...
...
include/asm-alpha/bitops.h
View file @
b0f875af
...
...
@@ -324,7 +324,7 @@ static inline int fls(int word)
#endif
/* Compute powers of two for the given integer. */
static
inline
int
floor_log2
(
unsigned
long
word
)
static
inline
long
floor_log2
(
unsigned
long
word
)
{
#if defined(__alpha_cix__) && defined(__alpha_fix__)
return
63
-
__kernel_ctlz
(
word
);
...
...
@@ -336,7 +336,7 @@ static inline int floor_log2(unsigned long word)
#endif
}
static
inline
int
ceil_log2
(
unsigned
int
word
)
static
inline
long
ceil_log2
(
unsigned
long
word
)
{
long
bit
=
floor_log2
(
word
);
return
bit
+
(
word
>
(
1UL
<<
bit
));
...
...
include/asm-alpha/compiler.h
View file @
b0f875af
...
...
@@ -17,9 +17,9 @@
# define __kernel_extbl(val, shift) __builtin_alpha_extbl(val, shift)
# define __kernel_extwl(val, shift) __builtin_alpha_extwl(val, shift)
# define __kernel_cmpbge(a, b) __builtin_alpha_cmpbge(a, b)
# define __kernel_cttz(x) __builtin_ctz(x)
# define __kernel_ctlz(x) __builtin_clz(x)
# define __kernel_ctpop(x) __builtin_popcount(x)
# define __kernel_cttz(x) __builtin_ctz
l
(x)
# define __kernel_ctlz(x) __builtin_clz
l
(x)
# define __kernel_ctpop(x) __builtin_popcount
l
(x)
#else
# define __kernel_insbl(val, shift) \
({ unsigned long __kir; \
...
...
include/asm-alpha/unistd.h
View file @
b0f875af
...
...
@@ -373,8 +373,9 @@
#define __NR_mq_timedreceive 435
#define __NR_mq_notify 436
#define __NR_mq_getsetattr 437
#define __NR_waitid 438
#define NR_SYSCALLS 43
8
#define NR_SYSCALLS 43
9
#if defined(__GNUC__)
...
...
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