lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
Last change
on this file since d246e7e was b49f4ae, checked in by Ondrej Palkovsky <ondrap@…>, 20 years ago |
Added architecture independent hooks for fpu lazy context switching.
It is enabled by defining FPU_LAZY
|
-
Property mode
set to
100644
|
File size:
1.4 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 | OBJDUMP=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objdump
|
---|
9 | OBJCOPY=$(AMD64_BINUTILS_DIR)/$(AMD64_TARGET)-objcopy
|
---|
10 | BFD_NAME=elf64-x86-64
|
---|
11 | BFD_ARCH=i386:x86-64
|
---|
12 |
|
---|
13 | DEFS=-DARCH=$(ARCH) -DFPU_LAZY
|
---|
14 |
|
---|
15 | ifdef SMP
|
---|
16 | DEFS+=-D$(SMP)
|
---|
17 | endif
|
---|
18 |
|
---|
19 | ifdef HT
|
---|
20 | DEFS+=-D$(HT)
|
---|
21 | endif
|
---|
22 |
|
---|
23 |
|
---|
24 | CPPFLAGS=$(DEFS) -nostdinc -I../include
|
---|
25 | CFLAGS=$(CPPFLAGS) -nostdlib -fno-builtin -fno-unwind-tables -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -march=opteron -m64 -mcmodel=kernel -mno-red-zone
|
---|
26 | LFLAGS=-M
|
---|
27 |
|
---|
28 | ../arch/$(ARCH)/_link.ld: ../arch/$(ARCH)/_link.ld.in
|
---|
29 | $(CC) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
|
---|
30 |
|
---|
31 | arch_sources = arch/dummy.s \
|
---|
32 | arch/fpu_context.c \
|
---|
33 | arch/boot/boot.S \
|
---|
34 | arch/boot/memmap.S \
|
---|
35 | arch/pm.c \
|
---|
36 | arch/context.S \
|
---|
37 | arch/drivers/ega.c \
|
---|
38 | arch/drivers/i8042.c \
|
---|
39 | arch/drivers/i8254.c \
|
---|
40 | arch/drivers/i8259.c \
|
---|
41 | arch/supplib.c \
|
---|
42 | arch/delay.S \
|
---|
43 | arch/amd64.c \
|
---|
44 | arch/bios/bios.c \
|
---|
45 | arch/interrupt.c \
|
---|
46 | arch/mm/frame.c \
|
---|
47 | arch/mm/page.c \
|
---|
48 | arch/mm/tlb.c \
|
---|
49 | arch/asm_utils.S \
|
---|
50 | arch/fmath.c \
|
---|
51 | arch/mm/memory_init.c \
|
---|
52 | arch/cpu/cpu.c \
|
---|
53 | arch/proc/scheduler.c \
|
---|
54 | arch/userspace.c \
|
---|
55 | arch/acpi/acpi.c \
|
---|
56 | arch/acpi/madt.c
|
---|
57 |
|
---|
58 | ifdef SMP
|
---|
59 | arch_sources += arch/smp/ap.S \
|
---|
60 | arch/smp/apic.c \
|
---|
61 | arch/smp/ipi.c \
|
---|
62 | arch/smp/mps.c \
|
---|
63 | arch/smp/smp.c
|
---|
64 | endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.