]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
microblaze: Define current_pt_regs
authorMichal Simek <michal.simek@xilinx.com>
Wed, 14 Nov 2012 12:05:13 +0000 (13:05 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Dec 2012 11:45:41 +0000 (12:45 +0100)
Upcomming patches are using this macro.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/processor.h

index af2bb9652392e9ecb80980c51a0ebf2b3390e526..b38a3574dd3d7b4ed30d96d67156590e39db0c60 100644 (file)
@@ -27,6 +27,8 @@ extern const struct seq_operations cpuinfo_op;
 #define task_pt_regs(tsk) \
                (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
 
+#define current_pt_regs() task_pt_regs(current)
+
 /* Do necessary setup to start up a newly executed thread. */
 void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp);