linux-insides-zh
linux-insides-zh copied to clipboard
1.0 error
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