opnsense-src/sys/cddl/dev/kinst
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
..
amd64 kinst: check for 'push %rbp' anywhere in the function 2023-07-19 17:53:08 +03:00
riscv kinst: port to riscv 2023-07-04 18:38:01 +03:00
kinst.c kinst: update LICENSE headers 2023-07-04 18:38:25 +03:00
kinst.h kinst.h: reorder function declarations based on implementation file 2023-07-19 17:50:24 +03:00
trampoline.c kinst: update LICENSE headers 2023-07-04 18:38:25 +03:00