Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145658
b: refs/heads/master
c: 51b26ad
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds authored and Ingo Molnar committed Apr 27, 2009
1 parent 9d29db8 commit 2d27a94
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 50 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a3ec21fcd311b26ab0f249d62960e127bc20ca8
refs/heads/master: 51b26ada79b605ed709ddcedbb6012e8f8e0ebed
5 changes: 5 additions & 0 deletions trunk/arch/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ config X86
select HAVE_KERNEL_BZIP2
select HAVE_KERNEL_LZMA

config OUTPUT_FORMAT
string
default "elf32-i386" if X86_32
default "elf64-x86-64" if X86_64

config ARCH_DEFCONFIG
string
default "arch/x86/configs/i386_defconfig" if X86_32
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/boot/compressed/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ KBUILD_AFLAGS := $(KBUILD_CFLAGS) -D__ASSEMBLY__
LDFLAGS := -m elf_$(UTS_MACHINE)
LDFLAGS_vmlinux := -T

$(obj)/vmlinux: $(src)/vmlinux_$(BITS).lds $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/piggy.o FORCE
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/piggy.o FORCE
$(call if_changed,ld)
@:

Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/x86/boot/compressed/head_32.S
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ ENTRY(startup_32)
* where decompression in place becomes safe.
*/
pushl %esi
leal _end(%ebp), %esi
leal _end(%ebx), %edi
movl $(_end - startup_32), %ecx
leal _ebss(%ebp), %esi
leal _ebss(%ebx), %edi
movl $(_ebss - startup_32), %ecx
std
rep
movsb
Expand Down Expand Up @@ -121,7 +121,7 @@ relocated:
*/
xorl %eax,%eax
leal _edata(%ebx),%edi
leal _end(%ebx), %ecx
leal _ebss(%ebx), %ecx
subl %edi,%ecx
cld
rep
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64")
OUTPUT_FORMAT(CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT, CONFIG_OUTPUT_FORMAT)

#ifdef CONFIG_X86_64
OUTPUT_ARCH(i386:x86-64)
ENTRY(startup_64)
#else
OUTPUT_ARCH(i386)
ENTRY(startup_32)
#endif

SECTIONS
{
/* Be careful parts of head_64.S assume startup_32 is at
Expand Down Expand Up @@ -38,11 +45,13 @@ SECTIONS
*(.bss)
*(.bss.*)
*(COMMON)
#ifdef CONFIG_X86_64
. = ALIGN(8);
_end_before_pgt = . ;
. = ALIGN(4096);
pgtable = . ;
. = . + 4096 * 6;
#endif
_ebss = .;
}
}
43 changes: 0 additions & 43 deletions trunk/arch/x86/boot/compressed/vmlinux_32.lds

This file was deleted.

0 comments on commit 2d27a94

Please sign in to comment.