diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-16 15:18:22 -0700 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-17 03:18:24 +0100 |
commit | 6f80ccc357702f87baf43440d97a49bcce999393 (patch) | |
tree | 645c4e00d5e0314b1f3e54c74016d6ee82e575c7 /src/arch/x86/c_start.S | |
parent | e5f29e8bf8c928a83764fcf428c1a05767bff7dd (diff) | |
download | coreboot-6f80ccc357702f87baf43440d97a49bcce999393.tar.xz |
arch/x86: Wrap lines at 80 columns
Fix the following warning detected by checkpatch.pl:
WARNING: line over 80 characters
TEST=Build and run on Galileo Gen2
Change-Id: I3495cd30d1737d9ee728c8a9e72bd426d7a69c37
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18864
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/arch/x86/c_start.S')
-rw-r--r-- | src/arch/x86/c_start.S | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/arch/x86/c_start.S b/src/arch/x86/c_start.S index 9a64fa6092..29d3a538b4 100644 --- a/src/arch/x86/c_start.S +++ b/src/arch/x86/c_start.S @@ -349,7 +349,9 @@ gdt: /* selgdt 0x10, flat code segment */ .word 0xffff, 0x0000 - .byte 0x00, 0x9b, 0xcf, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for limit */ + .byte 0x00, 0x9b, 0xcf, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for + * limit + */ /* selgdt 0x18, flat data segment */ .word 0xffff, 0x0000 @@ -377,11 +379,15 @@ gdt: /* selgdt 0x38, flat data segment 16 bit */ .word 0x0000, 0x0000 /* dummy */ - .byte 0x00, 0x93, 0x8f, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for limit */ + .byte 0x00, 0x93, 0x8f, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for + * limit + */ /* selgdt 0x40, flat code segment 16 bit */ .word 0xffff, 0x0000 - .byte 0x00, 0x9b, 0x8f, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for limit */ + .byte 0x00, 0x9b, 0x8f, 0x00 /* G=1 and 0x0f, So we get 4Gbytes for + * limit + */ #ifdef __x86_64__ /* selgdt 0x48, flat x64 code segment */ @@ -407,14 +413,16 @@ SetCodeSelector: # use iret to jump to a 64-bit offset in a new code segment # iret will pop cs:rip, flags, then ss:rsp mov %ss, %ax # need to push ss.. - push %rax # push ss instuction not valid in x64 mode, so use ax + push %rax # push ss instuction not valid in x64 mode, + # so use ax push %rsp pushfq push %rcx # cx is code segment selector from caller mov $setCodeSelectorLongJump, %rax push %rax - # the iret will continue at next instruction, with the new cs value loaded + # the iret will continue at next instruction, with the new cs value + # loaded iretq setCodeSelectorLongJump: |