CVSROOT: /cvs Module name: src Changes by: guent...@cvs.openbsd.org 2023/07/28 00:18:36
Modified files: sys/arch/amd64/include: codepatch.h sys/arch/amd64/amd64: locore.S copy.S Log message: Add CODEPATCH_CODE() macro to simplify defining a symbol for a chunk of code to use in codepatching. Use that for all the existing codepatching snippets. Similarly, add CODEPATCH_CODE_LEN() which is CODEPATCH_CODE() but also provides a short variable holding the length of the codepatch snippet. Use that for some snippets that will be used for retpoline replacement. ok kettenis@ deraadt@