diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2011-11-08 02:33:21 (GMT) |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2011-11-29 10:10:01 (GMT) |
commit | 303418cc97c0922cdbbc328e6d9111bd9a84d1c7 (patch) | |
tree | e7642dad72be366ffa78e076fa91481f577f1767 /arch/x86/cpu/interrupts.c | |
parent | a76fc70ee190416e0c161efebdb955a5fac904d3 (diff) | |
download | u-boot-303418cc97c0922cdbbc328e6d9111bd9a84d1c7.tar.xz |
x86: Ensure IDT and GDT remain 16-byte aligned post relocation
Some CPUs have strict alignment requirements for these tables
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'arch/x86/cpu/interrupts.c')
-rw-r--r-- | arch/x86/cpu/interrupts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/cpu/interrupts.c b/arch/x86/cpu/interrupts.c index e007511..e0958eb 100644 --- a/arch/x86/cpu/interrupts.c +++ b/arch/x86/cpu/interrupts.c @@ -174,7 +174,7 @@ struct desc_ptr { unsigned short segment; } __packed; -struct idt_entry idt[256]; +struct idt_entry idt[256] __attribute__((aligned(16))); struct desc_ptr idt_ptr; |