mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 14:40:41 +00:00
x86: Fix GDT limit in start16.S
GDT limit should be one less than an integral multiple of eight. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fb00601ed6
commit
35d4fed320
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ idt_ptr:
|
|||
* GDT is setup in a safe location in RAM
|
||||
*/
|
||||
gdt_ptr:
|
||||
.word 0x20 /* limit (32 bytes = 4 GDT entries) */
|
||||
.word 0x1f /* limit (31 bytes = 4 GDT entries - 1) */
|
||||
.long BOOT_SEG + gdt /* base */
|
||||
|
||||
/* Some CPUs are picky about GDT alignment... */
|
||||
|
|
Loading…
Reference in a new issue