projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb00601
)
x86: Fix GDT limit in start16.S
author
Bin Meng
<bmeng.cn@gmail.com>
Thu, 16 Oct 2014 14:58:35 +0000
(22:58 +0800)
committer
Simon Glass
<sjg@chromium.org>
Wed, 22 Oct 2014 15:03:07 +0000
(09:03 -0600)
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>
arch/x86/cpu/start16.S
patch
|
blob
|
history
diff --git
a/arch/x86/cpu/start16.S
b/arch/x86/cpu/start16.S
index 8b9b327cd48734fbd50b71dbe3d6a238151d7074..6968fda6494998d1d595c9862e64a10a8082a3e1 100644
(file)
--- a/
arch/x86/cpu/start16.S
+++ b/
arch/x86/cpu/start16.S
@@
-70,7
+70,7
@@
idt_ptr:
* GDT is setup in a safe location in RAM
*/
gdt_ptr:
- .word 0x
20 /* limit (32 bytes = 4 GDT entries
) */
+ .word 0x
1f /* limit (31 bytes = 4 GDT entries - 1
) */
.long BOOT_SEG + gdt /* base */
/* Some CPUs are picky about GDT alignment... */