-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/rw/uml Pull UML updates from Richard Weinberger: "Most changes are bug fixes and cleanups" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml: um: missing checks of __put_user()/__get_user() return values um: stub_rt_sigsuspend isn't needed these days anymore um/x86: merge (and trim) 32- and 64-bit variants of ptrace.h irq: Remove irq_chip->release() um: Remove CONFIG_IRQ_RELEASE_METHOD um: Remove usage of irq_chip->release() um: Implement um_free_irq() um: Fix __swp_type() um: Implement a custom pte_same() function um: Add BUG() to do_ops()'s error path um: Remove unused variables um: bury unused _TIF_RESTORE_SIGMASK um: wrong sigmask saved in case of multiple sigframes um: add TIF_NOTIFY_RESUME um: ->restart_block.fn needs to be reset on sigreturn
- Loading branch information
Showing
31 changed files
with
201 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
#ifndef __UM_X86_PTRACE_H | ||
#define __UM_X86_PTRACE_H | ||
|
||
#ifdef CONFIG_X86_32 | ||
# include "ptrace_32.h" | ||
#else | ||
# include "ptrace_64.h" | ||
#endif | ||
|
||
#define PT_REGS_AX(r) UPT_AX(&(r)->regs) | ||
#define PT_REGS_BX(r) UPT_BX(&(r)->regs) | ||
#define PT_REGS_CX(r) UPT_CX(&(r)->regs) | ||
#define PT_REGS_DX(r) UPT_DX(&(r)->regs) | ||
|
||
#define PT_REGS_SI(r) UPT_SI(&(r)->regs) | ||
#define PT_REGS_DI(r) UPT_DI(&(r)->regs) | ||
#define PT_REGS_BP(r) UPT_BP(&(r)->regs) | ||
#define PT_REGS_EFLAGS(r) UPT_EFLAGS(&(r)->regs) | ||
|
||
#define PT_REGS_CS(r) UPT_CS(&(r)->regs) | ||
#define PT_REGS_SS(r) UPT_SS(&(r)->regs) | ||
#define PT_REGS_DS(r) UPT_DS(&(r)->regs) | ||
#define PT_REGS_ES(r) UPT_ES(&(r)->regs) | ||
|
||
#define PT_REGS_ORIG_SYSCALL(r) PT_REGS_AX(r) | ||
#define PT_REGS_SYSCALL_RET(r) PT_REGS_AX(r) | ||
|
||
#define PT_FIX_EXEC_STACK(sp) do ; while(0) | ||
|
||
#define profile_pc(regs) PT_REGS_IP(regs) | ||
|
||
#define UPT_RESTART_SYSCALL(r) (UPT_IP(r) -= 2) | ||
#define UPT_SET_SYSCALL_RETURN(r, res) (UPT_AX(r) = (res)) | ||
|
||
static inline long regs_return_value(struct uml_pt_regs *regs) | ||
{ | ||
return UPT_AX(regs); | ||
} | ||
#endif /* __UM_X86_PTRACE_H */ |
Oops, something went wrong.