mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ia64: Add instruction_pointer_set() API
Add instruction_pointer_set() API for ia64. Link: https://lkml.kernel.org/r/163163051195.489837.1039597819838213481.stgit@devnote2 Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:
parent
bb6121b11c
commit
c1f76fe58f
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@
|
||||||
* the canonical representation by adding to instruction pointer.
|
* the canonical representation by adding to instruction pointer.
|
||||||
*/
|
*/
|
||||||
# define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri)
|
# 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)
|
static inline unsigned long user_stack_pointer(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue