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
31a47189
Commit
31a47189
authored
Nov 18, 2002
by
Jeff Dike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to the last merge.
parent
952b67f1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
19 deletions
+15
-19
arch/um/Makefile
arch/um/Makefile
+7
-3
arch/um/kernel/process.c
arch/um/kernel/process.c
+1
-0
arch/um/kernel/process_kern.c
arch/um/kernel/process_kern.c
+2
-2
arch/um/kernel/reboot.c
arch/um/kernel/reboot.c
+5
-5
arch/um/kernel/signal_user.c
arch/um/kernel/signal_user.c
+0
-9
arch/um/kernel/tt/include/debug.h
arch/um/kernel/tt/include/debug.h
+0
-0
No files found.
arch/um/Makefile
View file @
31a47189
...
...
@@ -31,7 +31,9 @@ core-y += $(ARCH_DIR)/kernel/ \
$(ARCH_DIR)
/drivers/
\
$(ARCH_DIR)
/sys-
$(SUBARCH)
/
ARCH_INCLUDE
=
$(TOPDIR)
/
$(ARCH_DIR)
/include
ARCH_INCLUDE
=
$(ARCH_DIR)
/include
MODE_INCLUDE
=
-I
$(ARCH_DIR)
/kernel/tt/include
\
-I
$(ARCH_DIR)
/kernel/skas/include
# -Derrno=kernel_errno - This turns all kernel references to errno into
# kernel_errno to separate them from the libc errno. This allows -fno-common
...
...
@@ -39,7 +41,8 @@ ARCH_INCLUDE = $(TOPDIR)/$(ARCH_DIR)/include
# errnos.
CFLAGS
+=
$(DEBUG)
$(PROFILE)
-D__arch_um__
-DSUBARCH
=
\"
$(SUBARCH)
\"
\
-D_LARGEFILE64_SOURCE
-I
$(ARCH_INCLUDE)
-Derrno
=
kernel_errno
-D_LARGEFILE64_SOURCE
-I
$(ARCH_INCLUDE)
-Derrno
=
kernel_errno
\
$(MODE_INCLUDE)
LINK_WRAPS
=
-Wl
,--wrap,malloc
-Wl
,--wrap,free
-Wl
,--wrap,calloc
...
...
@@ -79,7 +82,8 @@ linux: arch/um/uml.lds.s vmlinux
USER_CFLAGS
:=
$(
patsubst
-I
%,,
$(CFLAGS)
)
USER_CFLAGS
:=
$(
patsubst
-Derrno
=
kernel_errno,,
$(USER_CFLAGS)
)
USER_CFLAGS
:=
$(
patsubst
-D__KERNEL__
,,
$(USER_CFLAGS)
)
-I
$(ARCH_INCLUDE)
USER_CFLAGS
:=
$(
patsubst
-D__KERNEL__
,,
$(USER_CFLAGS)
)
-I
$(ARCH_INCLUDE)
\
$(MODE_INCLUDE)
# To get a definition of F_SETSIG
USER_CFLAGS
+=
-D_GNU_SOURCE
...
...
arch/um/kernel/process.c
View file @
31a47189
...
...
@@ -293,6 +293,7 @@ static void init_registers(int pid)
int
can_do_skas
(
void
)
{
#ifdef CONFIG_MODE_SKAS
struct
ptrace_faultinfo
fi
;
void
*
stack
;
int
pid
,
n
,
ret
=
1
;
...
...
arch/um/kernel/process_kern.c
View file @
31a47189
...
...
@@ -251,7 +251,7 @@ void *switch_to(void *prev, void *next, void *last)
reading
=
1
;
if
((
from
->
state
==
TASK_ZOMBIE
)
||
(
from
->
state
==
TASK_DEAD
))
os_kill_process
(
os_getpid
());
os_kill_process
(
os_getpid
()
,
0
);
err
=
os_read_file
(
from
->
thread
.
switch_pipe
[
0
],
&
c
,
sizeof
(
c
));
if
(
err
!=
sizeof
(
c
))
...
...
@@ -295,7 +295,7 @@ void interrupt_end(void)
void
release_thread
(
struct
task_struct
*
task
)
{
os_kill_process
(
task
->
thread
.
extern_pid
);
os_kill_process
(
task
->
thread
.
extern_pid
,
0
);
}
void
exit_thread
(
void
)
...
...
arch/um/kernel/reboot.c
View file @
31a47189
...
...
@@ -18,7 +18,7 @@ static void kill_idlers(int me)
for
(
i
=
0
;
i
<
sizeof
(
idle_threads
)
/
sizeof
(
idle_threads
[
0
]);
i
++
){
p
=
idle_threads
[
i
];
if
((
p
!=
NULL
)
&&
(
p
->
thread
.
extern_pid
!=
me
))
os_kill_process
(
p
->
thread
.
extern_pid
);
os_kill_process
(
p
->
thread
.
extern_pid
,
0
);
}
}
#endif
...
...
@@ -31,10 +31,10 @@ static void kill_off_processes(void)
me
=
os_getpid
();
for_each_process
(
p
){
if
(
p
->
thread
.
extern_pid
!=
me
)
os_kill_process
(
p
->
thread
.
extern_pid
);
os_kill_process
(
p
->
thread
.
extern_pid
,
0
);
}
if
(
init_task
.
thread
.
extern_pid
!=
me
)
os_kill_process
(
init_task
.
thread
.
extern_pid
);
os_kill_process
(
init_task
.
thread
.
extern_pid
,
0
);
#ifdef CONFIG_SMP
kill_idlers
(
me
);
#endif
...
...
@@ -51,7 +51,7 @@ void machine_restart(char * __unused)
do_uml_exitcalls
();
kill_off_processes
();
tracing_reboot
();
os_kill_process
(
os_getpid
());
os_kill_process
(
os_getpid
()
,
0
);
}
void
machine_power_off
(
void
)
...
...
@@ -59,7 +59,7 @@ void machine_power_off(void)
do_uml_exitcalls
();
kill_off_processes
();
tracing_halt
();
os_kill_process
(
os_getpid
());
os_kill_process
(
os_getpid
()
,
0
);
}
void
machine_halt
(
void
)
...
...
arch/um/kernel/signal_user.c
View file @
31a47189
...
...
@@ -102,15 +102,6 @@ int get_signals(void)
return
(
enable_mask
(
&
mask
));
}
int
get_signals
(
void
)
{
sigset_t
mask
;
if
(
sigprocmask
(
SIG_SETMASK
,
NULL
,
&
mask
)
<
0
)
panic
(
"Failed to get signal mask"
);
return
(
enable_mask
(
&
mask
));
}
int
set_signals
(
int
enable
)
{
sigset_t
mask
;
...
...
arch/um/kernel/tt/
ptproxy/
include/debug.h
→
arch/um/kernel/tt/include/debug.h
View file @
31a47189
File moved
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