diff options
| author | Andrew Turner <andrew@FreeBSD.org> | 2022-11-15 12:32:59 +0000 |
|---|---|---|
| committer | Andrew Turner <andrew@FreeBSD.org> | 2022-11-15 12:33:39 +0000 |
| commit | ba2bbac4c15aa296e36308d98ff5ef5c767f64aa (patch) | |
| tree | 9c7b7589b336324767eadb0a5f6fb2714b22283c /sys | |
| parent | 48767d8734ea21182eec04273127818e3878c2e5 (diff) | |
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arm64/arm64/unwind.c | 3 | ||||
| -rw-r--r-- | sys/riscv/riscv/unwind.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/arm64/arm64/unwind.c b/sys/arm64/arm64/unwind.c index 81431e109494..470b64c00540 100644 --- a/sys/arm64/arm64/unwind.c +++ b/sys/arm64/arm64/unwind.c @@ -41,8 +41,7 @@ unwind_frame(struct thread *td, struct unwind_state *frame) fp = frame->fp; - if (!is_aligned(fp, sizeof(fp)) || - !kstack_contains(td, fp, sizeof(fp) * 2)) + if (!kstack_contains(td, fp, sizeof(uintptr_t) * 2)) return (false); /* FP to previous frame (X29) */ diff --git a/sys/riscv/riscv/unwind.c b/sys/riscv/riscv/unwind.c index a66ffebcdc35..9efb1fef9451 100644 --- a/sys/riscv/riscv/unwind.c +++ b/sys/riscv/riscv/unwind.c @@ -47,8 +47,7 @@ unwind_frame(struct thread *td, struct unwind_state *frame) fp = frame->fp; - if (!is_aligned(fp, sizeof(fp)) || - !kstack_contains(td, fp - sizeof(fp) * 2, sizeof(fp) * 2)) + if (!kstack_contains(td, fp - sizeof(fp) * 2, sizeof(fp) * 2)) return (false); frame->sp = fp; |
