+ um-setup-irq-regs-in-do_irq.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     um: setup irq regs in do_IRQ

has been added to the -mm tree.  Its filename is

     um-setup-irq-regs-in-do_irq.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: um: setup irq regs in do_IRQ
From: Pekka Enberg <penberg@xxxxxxxxxxxxxx>

We need to setup and restore IRQ registers in __do_IRQ so that get_irq_regs
works correctly.  Fixes Alt-Sysrq-p for UML.

Cc: Jeff Dike <jdike@xxxxxxxxxxx>
Cc: Paolo "Blaisorblade" Giarrusso <blaisorblade@xxxxxxxx>
Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/um/kernel/irq.c |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff -puN arch/um/kernel/irq.c~um-setup-irq-regs-in-do_irq arch/um/kernel/irq.c
--- a/arch/um/kernel/irq.c~um-setup-irq-regs-in-do_irq
+++ a/arch/um/kernel/irq.c
@@ -355,10 +355,14 @@ void forward_interrupts(int pid)
  */
 unsigned int do_IRQ(int irq, union uml_pt_regs *regs)
 {
-       irq_enter();
-       __do_IRQ(irq);
-       irq_exit();
-       return 1;
+	struct pt_regs *old_regs;
+
+	old_regs = set_irq_regs((struct pt_regs *) regs);
+	irq_enter();
+	__do_IRQ(irq);
+	irq_exit();
+	set_irq_regs(old_regs);
+	return 1;
 }
 
 int um_request_irq(unsigned int irq, int fd, int type,
_

Patches currently in -mm which might be from penberg@xxxxxxxxxxxxxx are

origin.patch
um-setup-irq-regs-in-do_irq.patch
slab-leaks3-default-y.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux