opnsense-src/sys/cddl/dev/kinst/amd64
Christos Margiolis ea89133dbc kinst: check for 'push %rbp' anywhere in the function
Currently kinst checks if only the first instruction is 'push %rbp',
essentially excluding functions that do push RBP, but not in the first
instruction. This patch modifies kinst to check for 'push %rbp', as
well, as a following 'pop %rbp', anywhere in the function. This behavior
also matches that of FBT.

Reviewed by:	markj
Approved by:	markj (mentor)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D40283
2023-07-19 17:53:08 +03:00
..
kinst_isa.c kinst: check for 'push %rbp' anywhere in the function 2023-07-19 17:53:08 +03:00
kinst_isa.h kinst: update LICENSE headers 2023-07-04 18:38:25 +03:00