diff options
Diffstat (limited to 'meta/recipes-extended')
| -rw-r--r-- | meta/recipes-extended/psmisc/psmisc/0001-Use-UINTPTR_MAX-instead-of-__WORDSIZE.patch | 47 | ||||
| -rw-r--r-- | meta/recipes-extended/psmisc/psmisc_23.7.bb | 1 |
2 files changed, 0 insertions, 48 deletions
diff --git a/meta/recipes-extended/psmisc/psmisc/0001-Use-UINTPTR_MAX-instead-of-__WORDSIZE.patch b/meta/recipes-extended/psmisc/psmisc/0001-Use-UINTPTR_MAX-instead-of-__WORDSIZE.patch deleted file mode 100644 index 01335bdf40..0000000000 --- a/meta/recipes-extended/psmisc/psmisc/0001-Use-UINTPTR_MAX-instead-of-__WORDSIZE.patch +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | From 338d2d46d1c20ebadf317938af98d0532a62f8d4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 24 Mar 2016 15:46:14 +0000 | ||
| 4 | Subject: [PATCH] Use UINTPTR_MAX instead of __WORDSIZE | ||
| 5 | |||
| 6 | Do not include sys/user.h since it conflicts with | ||
| 7 | pt_regs struct from kernel APIs in asm/ptrace.h | ||
| 8 | |||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | Upstream-Status: Pending | ||
| 11 | --- | ||
| 12 | src/peekfd.c | 13 ++++++++----- | ||
| 13 | 1 file changed, 8 insertions(+), 5 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/src/peekfd.c b/src/peekfd.c | ||
| 16 | index 36dff04..2b4b1dc 100644 | ||
| 17 | --- a/src/peekfd.c | ||
| 18 | +++ b/src/peekfd.c | ||
| 19 | @@ -30,8 +30,11 @@ | ||
| 20 | #include <asm/ptrace.h> | ||
| 21 | #include <byteswap.h> | ||
| 22 | #include <endian.h> | ||
| 23 | +#ifdef __GLIBC__ | ||
| 24 | #include <sys/user.h> | ||
| 25 | +#endif | ||
| 26 | #include <stdlib.h> | ||
| 27 | +#include <stdint.h> | ||
| 28 | #include <getopt.h> | ||
| 29 | #include <ctype.h> | ||
| 30 | #include <dirent.h> | ||
| 31 | @@ -341,11 +344,11 @@ int main(int argc, char **argv) | ||
| 32 | if (WIFSTOPPED(status)) { | ||
| 33 | #ifdef PPC | ||
| 34 | struct pt_regs regs; | ||
| 35 | - regs.gpr[0] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R0, 0); | ||
| 36 | - regs.gpr[3] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R3, 0); | ||
| 37 | - regs.gpr[4] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R4, 0); | ||
| 38 | - regs.gpr[5] = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_R5, 0); | ||
| 39 | - regs.orig_gpr3 = ptrace(PTRACE_PEEKUSER, pid, __WORDSIZE/8 * PT_ORIG_R3, 0); | ||
| 40 | + regs.gpr[0] = ptrace(PTRACE_PEEKUSER, pid, UINTPTR_MAX/8 * PT_R0, 0); | ||
| 41 | + regs.gpr[3] = ptrace(PTRACE_PEEKUSER, pid, UINTPTR_MAX/8 * PT_R3, 0); | ||
| 42 | + regs.gpr[4] = ptrace(PTRACE_PEEKUSER, pid, UINTPTR_MAX/8 * PT_R4, 0); | ||
| 43 | + regs.gpr[5] = ptrace(PTRACE_PEEKUSER, pid, UINTPTR_MAX/8 * PT_R5, 0); | ||
| 44 | + regs.orig_gpr3 = ptrace(PTRACE_PEEKUSER, pid, UINTPTR_MAX/8 * PT_ORIG_R3, 0); | ||
| 45 | #elif defined(ARM) | ||
| 46 | struct pt_regs regs; | ||
| 47 | ptrace(PTRACE_GETREGS, pid, 0, ®s); | ||
diff --git a/meta/recipes-extended/psmisc/psmisc_23.7.bb b/meta/recipes-extended/psmisc/psmisc_23.7.bb index d96eaf5fe8..4128ca0533 100644 --- a/meta/recipes-extended/psmisc/psmisc_23.7.bb +++ b/meta/recipes-extended/psmisc/psmisc_23.7.bb | |||
| @@ -13,7 +13,6 @@ LICENSE = "GPL-2.0-only" | |||
| 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" |
| 14 | 14 | ||
| 15 | SRC_URI = "git://gitlab.com/psmisc/psmisc.git;protocol=https;branch=master \ | 15 | SRC_URI = "git://gitlab.com/psmisc/psmisc.git;protocol=https;branch=master \ |
| 16 | file://0001-Use-UINTPTR_MAX-instead-of-__WORDSIZE.patch \ | ||
| 17 | " | 16 | " |
| 18 | SRCREV = "9091d6dbcce3d8fb87adf9249a2eb346d25a562c" | 17 | SRCREV = "9091d6dbcce3d8fb87adf9249a2eb346d25a562c" |
| 19 | S = "${WORKDIR}/git" | 18 | S = "${WORKDIR}/git" |
