summaryrefslogtreecommitdiff
path: root/linux-uml/linux-uml-2.6.7/silly_panic.patch
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /linux-uml/linux-uml-2.6.7/silly_panic.patch
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'linux-uml/linux-uml-2.6.7/silly_panic.patch')
-rw-r--r--linux-uml/linux-uml-2.6.7/silly_panic.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/linux-uml/linux-uml-2.6.7/silly_panic.patch b/linux-uml/linux-uml-2.6.7/silly_panic.patch
index e69de29bb2..38d3516691 100644
--- a/linux-uml/linux-uml-2.6.7/silly_panic.patch
+++ b/linux-uml/linux-uml-2.6.7/silly_panic.patch
@@ -0,0 +1,22 @@
+---
+
+ uml-linux-2.6.7-paolo/arch/um/kernel/trap_kern.c | 6 ++++--
+ 1 files changed, 4 insertions(+), 2 deletions(-)
+
+diff -puN arch/um/kernel/trap_kern.c~silly_panic arch/um/kernel/trap_kern.c
+--- uml-linux-2.6.7/arch/um/kernel/trap_kern.c~silly_panic 2004-06-28 21:42:06.025387464 +0200
++++ uml-linux-2.6.7-paolo/arch/um/kernel/trap_kern.c 2004-06-28 21:43:47.676934080 +0200
+@@ -54,8 +54,10 @@ int handle_page_fault(unsigned long addr
+ if(is_write && !(vma->vm_flags & VM_WRITE))
+ goto out;
+ page = address & PAGE_MASK;
+- if(page == (unsigned long) current_thread + PAGE_SIZE)
+- panic("Kernel stack overflow");
++ if (mode_tt) {
++ if(page == (unsigned long) current_thread + PAGE_SIZE)
++ panic("Kernel stack overflow");
++ }
+ pgd = pgd_offset(mm, page);
+ pmd = pmd_offset(pgd, page);
+ do {
+_