projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pid namespaces: define is_global_init() and is_container_init()
[powerpc.git]
/
arch
/
sh64
/
mm
/
fault.c
diff --git
a/arch/sh64/mm/fault.c
b/arch/sh64/mm/fault.c
index
0d069d8
..
7aea586
100644
(file)
--- a/
arch/sh64/mm/fault.c
+++ b/
arch/sh64/mm/fault.c
@@
-278,7
+278,7
@@
bad_area:
show_regs(regs);
#endif
}
show_regs(regs);
#endif
}
- if (is_init(tsk)) {
+ if (is_
global_
init(tsk)) {
panic("INIT had user mode bad_area\n");
}
tsk->thread.address = address;
panic("INIT had user mode bad_area\n");
}
tsk->thread.address = address;
@@
-320,21
+320,21
@@
no_context:
* us unable to handle the page fault gracefully.
*/
out_of_memory:
* us unable to handle the page fault gracefully.
*/
out_of_memory:
- if (is_init(current)) {
+ if (is_
global_
init(current)) {
panic("INIT out of memory\n");
yield();
goto survive;
}
printk("fault:Out of memory\n");
up_read(&mm->mmap_sem);
panic("INIT out of memory\n");
yield();
goto survive;
}
printk("fault:Out of memory\n");
up_read(&mm->mmap_sem);
- if (is_init(current)) {
+ if (is_
global_
init(current)) {
yield();
down_read(&mm->mmap_sem);
goto survive;
}
printk("VM: killing process %s\n", tsk->comm);
if (user_mode(regs))
yield();
down_read(&mm->mmap_sem);
goto survive;
}
printk("VM: killing process %s\n", tsk->comm);
if (user_mode(regs))
- do_exit(SIGKILL);
+ do_
group_
exit(SIGKILL);
goto no_context;
do_sigbus:
goto no_context;
do_sigbus: