McKernel IHK SMP-x86 support (build system and config files)

This commit is contained in:
Balazs Gerofi
2014-11-04 15:47:16 +09:00
committed by Balazs Gerofi bgerofi@riken.jp
parent 811a275176
commit 5f095b3952
6 changed files with 799 additions and 5 deletions

View File

@@ -0,0 +1,2 @@
CFLAGS += -mno-sse -mno-mmx -mno-sse2 -mno-3dnow
LDFLAGS += -T $(SRC)/config/smp-x86.lds

46
kernel/config/smp-x86.lds Normal file
View File

@@ -0,0 +1,46 @@
PHDRS
{
text PT_LOAD FLAGS(5);
data PT_LOAD FLAGS(7);
}
SECTIONS
{
. = 0xffffffff80001000;
_head = .;
.text : {
*(.text);
} : text
. = ALIGN(4096);
.data : {
*(.data)
*(.data.*)
} :data
.rodata : {
*(.rodata .rodata.*)
} :data
.vsyscall : ALIGN(0x1000) {
vsyscall_page = .;
. = vsyscall_page + 0x000;
*(.vsyscall.gettimeofday)
. = vsyscall_page + 0x400;
*(.vsyscall.time)
. = ALIGN(4096);
} : data = 0xf4
.bss : {
*(.bss .bss.*)
}
. = ALIGN(4096);
_end = .;
/DISCARD/ : {
*(.eh_frame)
*(.note.gnu.build-id)
}
}