Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155834
b: refs/heads/master
c: f10eca6
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek committed Jul 27, 2009
1 parent 1db8665 commit 2f2a8fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f14d6f7c31c73a902a6b567dc719128e74603902
refs/heads/master: f10eca6e107fd223c24393c09c40b916d2b3c427
13 changes: 4 additions & 9 deletions trunk/arch/microblaze/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,10 @@ void do_page_fault(struct pt_regs *regs, unsigned long address,
}
#endif /* CONFIG_KGDB */

if (in_atomic() || mm == NULL) {
/* FIXME */
if (kernel_mode(regs)) {
printk(KERN_EMERG
"Page fault in kernel mode - Oooou!!! pid %d\n",
current->pid);
_exception(SIGSEGV, regs, code, address);
return;
}
if (in_atomic() || !mm) {
if (kernel_mode(regs))
goto bad_area_nosemaphore;

/* in_atomic() in user mode is really bad,
as is current->mm == NULL. */
printk(KERN_EMERG "Page fault in user mode with "
Expand Down

0 comments on commit 2f2a8fb

Please sign in to comment.