lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since ee7e6ace was 946b630, checked in by Ondrej Palkovsky <ondrap@…>, 20 years ago |
Reverted APIC mapping back to identity mapping.
Added AMD64 SMP support. Works now!
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | AMD64_TARGET=amd64-linux-gnu
|
---|
2 | AMD64_CC_DIR=/usr/local/amd64/bin
|
---|
3 | AMD64_BINUTILS_DIR=/usr/local/amd64/bin
|
---|
4 |
|
---|
5 | CC=$(AMD64_CC_DIR)/$(AMD64_TARGET)-gcc
|
---|
6 | AS=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-as
|
---|
7 | LD=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-ld
|
---|
8 | OBJCOPY=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objcopy
|
---|
9 | BFD_NAME=elf64-x86-64
|
---|
10 | BFD_ARCH=i386:x86-64
|
---|
11 |
|
---|
12 | DEFS=-DARCH=$(ARCH)
|
---|
13 |
|
---|
14 | ifdef SMP
|
---|
15 | DEFS+=-D$(SMP)
|
---|
16 | endif
|
---|
17 |
|
---|
18 | ifdef HT
|
---|
19 | DEFS+=-D$(HT)
|
---|
20 | endif
|
---|
21 |
|
---|
22 |
|
---|
23 | CPPFLAGS=$(DEFS) -nostdinc -I../include
|
---|
24 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
|
---|
25 | LFLAGS=-M -T ../arch/amd64/_link.ld
|
---|
26 |
|
---|
27 | arch_sources = arch/dummy.s \
|
---|
28 | arch/fpu_context.c \
|
---|
29 | arch/boot/boot.S \
|
---|
30 | arch/boot/memmap.S \
|
---|
31 | arch/pm.c \
|
---|
32 | arch/context.S \
|
---|
33 | arch/drivers/ega.c \
|
---|
34 | arch/drivers/i8042.c \
|
---|
35 | arch/drivers/i8254.c \
|
---|
36 | arch/drivers/i8259.c \
|
---|
37 | arch/supplib.c \
|
---|
38 | arch/delay.S \
|
---|
39 | arch/amd64.c \
|
---|
40 | arch/bios/bios.c \
|
---|
41 | arch/interrupt.c \
|
---|
42 | arch/mm/frame.c \
|
---|
43 | arch/mm/page.c \
|
---|
44 | arch/mm/tlb.c \
|
---|
45 | arch/asm_utils.S \
|
---|
46 | arch/fmath.c \
|
---|
47 | arch/mm/memory_init.c \
|
---|
48 | arch/cpu/cpu.c \
|
---|
49 | arch/proc/scheduler.c \
|
---|
50 | arch/userspace.c \
|
---|
51 | arch/acpi/acpi.c \
|
---|
52 | arch/acpi/madt.c
|
---|
53 |
|
---|
54 | ifdef SMP
|
---|
55 | arch_sources += arch/smp/ap.S \
|
---|
56 | arch/smp/apic.c \
|
---|
57 | arch/smp/ipi.c \
|
---|
58 | arch/smp/mps.c \
|
---|
59 | arch/smp/smp.c
|
---|
60 | endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.