/* * Common low level (register) ptrace helpers * * Copyright 2004-2011 Analog Devices Inc. * * Licensed under the GPL-2 or later. */ #ifndef __ASM_GENERIC_PTRACE_H__ #define __ASM_GENERIC_PTRACE_H__ #ifndef __ASSEMBLY__ /* Helpers for working with the instruction pointer */ #ifndef GET_IP #define GET_IP(regs) ((regs)->pc) #endif #ifndef SET_IP #define SET_IP(regs, val) (GET_IP(regs) = (val)) #endif static inline unsigned long instruction_pointer(struct pt_regs *regs) { return GET_IP(regs); } static inline void instruction_pointer_set(struct pt_regs *regs, unsigned long val) { SET_IP(regs, val); } #ifndef profile_pc #define profile_pc(regs) instruction_pointer(regs) #endif /* Helpers for working with the user stack pointer */ #ifndef GET_USP #define GET_USP(regs) ((regs)->usp) #endif #ifndef SET_USP #define SET_USP(regs, val) (GET_USP(regs) = (val)) #endif static inline unsigned long user_stack_pointer(struct pt_regs *regs) { return GET_USP(regs); } static inline void user_stack_pointer_set(struct pt_regs *regs, unsigned long val) { SET_USP(regs, val); } /* Helpers for working with the frame pointer */ #ifndef GET_FP #define GET_FP(regs) ((regs)->fp) #endif #ifndef SET_FP #define SET_FP(regs, val) (GET_FP(regs) = (val)) #endif static inline unsigned long frame_pointer(struct pt_regs *regs) { return GET_FP(regs); } static inline void frame_pointer_set(struct pt_regs *regs, unsigned long val) { SET_FP(regs, val); } #endif /* __ASSEMBLY__ */ #endif fs/?h=nds-private-remove&id=fe8de3da13bdbcbe8b583a3bbadf677da0f04f83'>refslogtreecommitdiff
path: root/include/net/nfc/digital.h
tion>
AgeCommit message (Expand)AuthorFilesLines
space:
mode:
authorThierry Reding <thierry.reding@gmail.com>2016-09-08 10:59:30 +0200
committerThierry Reding <thierry.reding@gmail.com>2016-09-08 10:59:30 +0200
commitdc8e6e1e8f2d2719dd396708b0f56d8b73c9ea52 (patch)
treefa718cd29fd65ad180b57856a9ee67e2bc324c44 /Documentation/debugging-via-ohci1394.txt
parent51f01e4cbaf321effa75a21611ed5c34ea7cc583 (diff)
parent2fbc487df6e6927bc0a0092f86d4d15961e070de (diff)
Merge branch 'for-4.9/drivers' into for-next
Diffstat (limited to 'Documentation/debugging-via-ohci1394.txt')