]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: GDT limit value should be size - 1
authorArvind Sankar <nivedita@alum.mit.edu>
Sun, 2 Feb 2020 17:13:52 +0000 (12:13 -0500)
committerArd Biesheuvel <ardb@kernel.org>
Sat, 22 Feb 2020 22:37:37 +0000 (23:37 +0100)
commita2e7304a9db7639c415f0d5bcfdea8230d2fc68f
treeeb82a894524be3c2618b6e169e96ac4157fd1c28
parent568e3e3d7e71bcd1658c6de2af247c106dedf938
x86/boot: GDT limit value should be size - 1

The limit value for the GDTR should be such that adding it to the base
address gives the address of the last byte of the GDT, i.e. it should be
one less than the size, not the size.

Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu>
Link: https://lore.kernel.org/r/20200202171353.3736319-7-nivedita@alum.mit.edu
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/boot/compressed/head_64.S