diff options
author | Wei Yang <[email protected]> | 2016-11-01 15:49:24 +0000 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-11-07 08:33:59 +0100 |
commit | 064025f7ea1ebcd9bbb99cfa9492a803e8b01d36 (patch) | |
tree | 9b23d4de731ef193e5231fd03f715b33d9006f5f /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 0acba3f91823a5e53a54af5dc31fc774b0e64e99 (diff) |
x86/boot: Simplify the GDTR calculation assembly code a bit
This patch calculates the GDTR's base address via a single instruction.
( EBP contains the address where it is loaded and GDTR's base address is
already set to "gdt" in compilation. It is fine to get the correct base
address by adding the delta to GDTR's base address. )
Signed-off-by: Wei Yang <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions