【发布时间】:2016-07-21 02:53:40
【问题描述】:
我想了解linux内核中x86实模式入口点的含义:
_start:
# Explicitly enter this as bytes, or the assembler
# tries to generate a 3-byte jump here, which causes
# everything else to push off to the wrong offset.
.byte 0xeb # short (2-byte) jump
.byte start_of_setup-1f
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/boot/header.S#n298
特别是最后一行.byte start_of_setup-1f
【问题讨论】:
标签: assembly linux-kernel