remove all trailing whitespace
This commit is contained in:
parent
d2d4966571
commit
b39f9d20a9
222 changed files with 3286 additions and 3286 deletions
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
#include <grub/symbol.h>
|
||||
|
||||
|
||||
|
||||
.p2align 4 /* force 16-byte alignment */
|
||||
VARIABLE(grub_linux_trampoline_start)
|
||||
|
@ -26,23 +26,23 @@ VARIABLE(grub_linux_trampoline_start)
|
|||
contains real memory start. */
|
||||
|
||||
mov %rsi, %rbx
|
||||
|
||||
|
||||
call base
|
||||
base:
|
||||
base:
|
||||
pop %rsi
|
||||
|
||||
#ifdef APPLE_CC
|
||||
#ifdef APPLE_CC
|
||||
lea (cont1 - base) (%esi, 1), %rax
|
||||
mov %eax, (jump_vector - base) (%esi, 1)
|
||||
|
||||
lea (gdt - base) (%esi, 1), %rax
|
||||
mov %rax, (gdtaddr - base) (%esi, 1)
|
||||
|
||||
|
||||
/* Switch to compatibility mode. */
|
||||
|
||||
lidt (idtdesc - base) (%esi, 1)
|
||||
lgdt (gdtdesc - base) (%esi, 1)
|
||||
|
||||
|
||||
/* Update %cs. Thanks to David Miller for pointing this mistake out. */
|
||||
ljmp *(jump_vector - base) (%esi, 1)
|
||||
#else
|
||||
|
@ -51,22 +51,22 @@ base:
|
|||
|
||||
lea (gdt - base) (%rsi, 1), %rax
|
||||
mov %rax, (gdtaddr - base) (%rsi, 1)
|
||||
|
||||
|
||||
/* Switch to compatibility mode. */
|
||||
|
||||
lidt (idtdesc - base) (%rsi, 1)
|
||||
lgdt (gdtdesc - base) (%rsi, 1)
|
||||
|
||||
|
||||
/* Update %cs. Thanks to David Miller for pointing this mistake out. */
|
||||
ljmp *(jump_vector - base) (%rsi, 1)
|
||||
#endif
|
||||
|
||||
|
||||
cont1:
|
||||
.code32
|
||||
|
||||
/* Update other registers. */
|
||||
mov $0x18, %eax
|
||||
mov %eax, %ds
|
||||
mov %eax, %ds
|
||||
mov %eax, %es
|
||||
mov %eax, %fs
|
||||
mov %eax, %gs
|
||||
|
@ -89,41 +89,41 @@ cont1:
|
|||
mov %eax, %cr4
|
||||
|
||||
jmp cont2
|
||||
cont2:
|
||||
cont2:
|
||||
.code32
|
||||
|
||||
|
||||
mov %ebx, %esi
|
||||
|
||||
jmp *%edi
|
||||
|
||||
/* GDT. */
|
||||
.p2align 4
|
||||
gdt:
|
||||
gdt:
|
||||
/* NULL. */
|
||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
|
||||
|
||||
/* Reserved. */
|
||||
.byte 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
|
||||
|
||||
/* Code segment. */
|
||||
.byte 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x9A, 0xCF, 0x00
|
||||
|
||||
|
||||
/* Data segment. */
|
||||
.byte 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x92, 0xCF, 0x00
|
||||
|
||||
gdtdesc:
|
||||
gdtdesc:
|
||||
.word 31
|
||||
gdtaddr:
|
||||
gdtaddr:
|
||||
.quad gdt
|
||||
|
||||
idtdesc:
|
||||
idtdesc:
|
||||
.word 0
|
||||
idtaddr:
|
||||
idtaddr:
|
||||
.quad 0
|
||||
|
||||
.p2align 4
|
||||
jump_vector:
|
||||
/* Jump location. Is filled by the code */
|
||||
.long 0
|
||||
.long 0x10
|
||||
.long 0x10
|
||||
VARIABLE(grub_linux_trampoline_end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue