# For linux.mod.
linux_mod_SOURCES = loader/i386/efi/linux.c loader/i386/linux_trampoline.S
linux_mod_CFLAGS = $(COMMON_CFLAGS)
+linux_mod_ASFLAGS = $(COMMON_ASFLAGS)
linux_mod_LDFLAGS = $(COMMON_LDFLAGS)
# For halt.mod.
base:
pop %rsi
- lea (cont1-base)(%rsi, 1), %rax
- mov %eax, (jump_vector-base)(%rsi,1)
+ lea (cont1 - base) (%rsi, 1), %rax
+ mov %eax, (jump_vector - base) (%rsi, 1)
- lea (gdt-base)(%rsi, 1), %rax
- mov %rax, (gdtaddr-base)(%rsi,1)
+ 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)
+ 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)
+ ljmp *(jump_vector - base) (%rsi, 1)
cont1:
.code32
cont0:
- lea (cont1-base)(%rsi, 1), %rax
- mov %eax, (jump_vector-base)(%rsi,1)
+ lea (cont1 - base) (%rsi, 1), %rax
+ mov %eax, (jump_vector - base) (%rsi, 1)
- lea (gdt-base)(%rsi, 1), %rax
- mov %rax, (gdt_addr-base)(%rsi,1)
+ lea (gdt - base) (%rsi, 1), %rax
+ mov %rax, (gdt_addr - base) (%rsi, 1)
/* Switch to compatibility mode. */
- lgdt (gdtdesc-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)
+ ljmp *(jump_vector - base) (%rsi, 1)
cont1:
.code32