Closed void0red closed 1 year ago
First of all, the kernel ensures that the ds and es segment registers point to the same address. Next, it clears the direction flag using the cld instruction:
movw %ds, %ax movw %ax, %es cld
cld not sti
Please provide more information. Do you mean some errors in one chapter?
https://github.com/MintCN/linux-insides-zh/blob/44ad5ac5fb82c9038048e27209a784d077f122d8/Booting/linux-bootstrap-1.md?plain=1#L344
it seems to be cld not sti see at:
cld
sti
应该是上游更新了,但是下游的翻译还用之前的版本。
你如果有时间的话,可以提交一个PR来更新一下
Fixed in commit ad33bb1
First of all, the kernel ensures that the ds and es segment registers point to the same address. Next, it clears the direction flag using the cld instruction:
cld not sti