aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/arm64/unwind.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm64/arm64/unwind.c')
-rw-r--r--sys/arm64/arm64/unwind.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm64/arm64/unwind.c b/sys/arm64/arm64/unwind.c
index 470b64c00540..db95cb8c7f11 100644
--- a/sys/arm64/arm64/unwind.c
+++ b/sys/arm64/arm64/unwind.c
@@ -26,8 +26,6 @@
* SUCH DAMAGE.
*/
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/proc.h>
@@ -41,7 +39,8 @@ unwind_frame(struct thread *td, struct unwind_state *frame)
fp = frame->fp;
- if (!kstack_contains(td, fp, sizeof(uintptr_t) * 2))
+ if (!__is_aligned(fp, sizeof(fp)) ||
+ !kstack_contains(td, fp, sizeof(fp) * 2))
return (false);
/* FP to previous frame (X29) */