Revert "Check alignment of fp in unwind_frame"

Fix the build as is_aligned doesn't exist in FreeBSD.

This reverts commit 40e0fa10f5.
This commit is contained in:
Andrew Turner 2022-11-15 12:32:59 +00:00
parent 48767d8734
commit ba2bbac4c1
2 changed files with 2 additions and 4 deletions

View File

@ -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) */

View File

@ -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;