]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/kexec: Add comments around swap_pages() assembly to improve readability
authorKai Huang <kai.huang@intel.com>
Sun, 25 Aug 2024 08:18:06 +0000 (20:18 +1200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 Aug 2024 12:29:39 +0000 (14:29 +0200)
commitea49cdb26e7cffc261ceb1db26707e6d337fa104
tree187a545b15f4da0d853c12a793c278d52145bbcf
parent3c41ad39f179c0e41f585975eb6834cd14f286ec
x86/kexec: Add comments around swap_pages() assembly to improve readability

The current assembly around swap_pages() in the relocate_kernel() takes
some time to follow because the use of registers can be easily lost when
the line of assembly goes long.  Add a couple of comments to clarify the
code around swap_pages() to improve readability.

Signed-off-by: Kai Huang <kai.huang@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lore.kernel.org/all/8b52b0b8513a34b2a02fb4abb05c6700c2821475.1724573384.git.kai.huang@intel.com
arch/x86/kernel/relocate_kernel_64.S