Commit c1f76fe5 authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Steven Rostedt (VMware)
Browse files

ia64: Add instruction_pointer_set() API

parent bb6121b1
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -51,6 +51,11 @@
 * the canonical representation by adding to instruction pointer.
 */
# define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri)
# define instruction_pointer_set(regs, val)	\
({						\
	ia64_psr(regs)->ri = (val & 0xf);	\
	regs->cr_iip = (val & ~0xfULL);		\
})

static inline unsigned long user_stack_pointer(struct pt_regs *regs)
{