mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
[PATCH] Add regs_return_value() helper
Add the regs_return_value() macro to extract the return value in an architecture agnostic manner, given the pt_regs. Other architecture maintainers may want to add similar helpers. Signed-off-by: Ananth N Mavinakayanahalli <[email protected]> Signed-off-by: Anil S Keshavamurthy <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
committed by
Linus Torvalds
parent
412998cf6b
commit
b3f827cb0f
@@ -241,6 +241,9 @@ struct switch_stack {
|
||||
* the canonical representation by adding to instruction pointer.
|
||||
*/
|
||||
# define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri)
|
||||
|
||||
#define regs_return_value(regs) ((regs)->r8)
|
||||
|
||||
/* Conserve space in histogram by encoding slot bits in address
|
||||
* bits 2 and 3 rather than bits 0 and 1.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user