mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
x86: Fix various code format issues in start16.S
Various minor code format issues are fixed in start16.S: - U-boot -> U-Boot - 32bit -> 32-bit - Use TAB instead of SPACE to indent - Move the indention location of the GDT comment block Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
3b621ccabd
commit
fea1c47f54
1 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* U-boot - x86 Startup Code
|
* U-Boot - x86 Startup Code
|
||||||
*
|
*
|
||||||
* (C) Copyright 2008-2011
|
* (C) Copyright 2008-2011
|
||||||
* Graeme Russ, <graeme.russ@gmail.com>
|
* Graeme Russ, <graeme.russ@gmail.com>
|
||||||
|
@ -28,7 +28,7 @@ start16:
|
||||||
movl $GD_FLG_COLD_BOOT, %ebx
|
movl $GD_FLG_COLD_BOOT, %ebx
|
||||||
|
|
||||||
xorl %eax, %eax
|
xorl %eax, %eax
|
||||||
movl %eax, %cr3 /* Invalidate TLB */
|
movl %eax, %cr3 /* Invalidate TLB */
|
||||||
|
|
||||||
/* Turn off cache (this might require a 486-class CPU) */
|
/* Turn off cache (this might require a 486-class CPU) */
|
||||||
movl %cr0, %eax
|
movl %cr0, %eax
|
||||||
|
@ -49,7 +49,7 @@ o32 cs lgdt gdt_ptr
|
||||||
jmp ff
|
jmp ff
|
||||||
ff:
|
ff:
|
||||||
|
|
||||||
/* Finally restore BIST and jump to the 32bit initialization code */
|
/* Finally restore BIST and jump to the 32-bit initialization code */
|
||||||
movw $code32start, %ax
|
movw $code32start, %ax
|
||||||
movw %ax, %bp
|
movw %ax, %bp
|
||||||
movl %ecx, %eax
|
movl %ecx, %eax
|
||||||
|
@ -64,17 +64,17 @@ idt_ptr:
|
||||||
.word 0 /* limit */
|
.word 0 /* limit */
|
||||||
.long 0 /* base */
|
.long 0 /* base */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following Global Descriptor Table is just enough to get us into
|
* The following Global Descriptor Table is just enough to get us into
|
||||||
* 'Flat Protected Mode' - It will be discarded as soon as the final
|
* 'Flat Protected Mode' - It will be discarded as soon as the final
|
||||||
* GDT is setup in a safe location in RAM
|
* GDT is setup in a safe location in RAM
|
||||||
*/
|
*/
|
||||||
gdt_ptr:
|
gdt_ptr:
|
||||||
.word 0x1f /* limit (31 bytes = 4 GDT entries - 1) */
|
.word 0x1f /* limit (31 bytes = 4 GDT entries - 1) */
|
||||||
.long BOOT_SEG + gdt /* base */
|
.long BOOT_SEG + gdt /* base */
|
||||||
|
|
||||||
/* Some CPUs are picky about GDT alignment... */
|
/* Some CPUs are picky about GDT alignment... */
|
||||||
.align 16
|
.align 16
|
||||||
gdt:
|
gdt:
|
||||||
/*
|
/*
|
||||||
* The GDT table ...
|
* The GDT table ...
|
||||||
|
|
Loading…
Add table
Reference in a new issue