Subversion Repositories HelenOS

Rev

Rev 3022 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3022 Rev 4055
Line 31... Line 31...
31
 
31
 
32
BFD_NAME = elf32-i386
32
BFD_NAME = elf32-i386
33
BFD_ARCH = i386
33
BFD_ARCH = i386
34
BFD = binary
34
BFD = binary
35
TARGET = i686-pc-linux-gnu
35
TARGET = i686-pc-linux-gnu
36
TOOLCHAIN_DIR = /usr/local/i686
36
TOOLCHAIN_DIR = $(CROSS_PREFIX)/i686
37
 
37
 
38
DEFS += -DMACHINE=$(MACHINE) -D__32_BITS__
38
DEFS += -D__32_BITS__
39
 
39
 
40
CMN1 = -m32
40
CMN1 = -m32
41
GCC_CFLAGS += $(CMN1)
41
GCC_CFLAGS += $(CMN1)
42
ICC_CFLAGS += $(CMN1)
42
ICC_CFLAGS += $(CMN1)
43
SUNCC_CFLAGS += $(CMN1)
43
SUNCC_CFLAGS += $(CMN1)
44
 
44
 
45
## Accepted CPUs
45
## Accepted CPUs
46
#
46
#
47
 
47
 
48
ifeq ($(MACHINE),athlon-xp)
48
ifeq ($(PROCESSOR),athlon_xp)
49
	CMN2 = -march=athlon-xp -mmmx -msse -m3dnow
49
	CMN2 = -march=athlon-xp
50
	GCC_CFLAGS += $(CMN2)
-
 
51
	ICC_CFLAGS += $(CMN2)
-
 
52
	SUNCC_CFLAGS += -xarch=ssea
50
	SUNCC_CFLAGS += -xarch=ssea
53
	DEFS += -DCONFIG_FENCES_P3
-
 
54
	CONFIG_SMP = n
-
 
55
	CONFIG_HT = n
-
 
56
endif
51
endif
57
ifeq ($(MACHINE),athlon-mp)
52
ifeq ($(PROCESSOR),athlon_mp)
58
	CMN2 = -march=athlon-mp -mmmx -msse -m3dnow
53
	CMN2 = -march=athlon-mp
59
	GCC_CFLAGS += $(CMN2)
-
 
60
	ICC_CFLAGS += $(CMN2)
-
 
61
	SUNCC_CFLAGS += xarch=ssea
54
	SUNCC_CFLAGS += xarch=ssea
62
	DEFS += -DCONFIG_FENCES_P3
-
 
63
	CONFIG_HT = n
-
 
64
endif
55
endif
65
ifeq ($(MACHINE),pentium3)
56
ifeq ($(PROCESSOR),pentium3)
66
	CMN2 = -march=pentium3 -mmmx -msse
57
	CMN2 = -march=pentium3
67
	GCC_CFLAGS += $(CMN2)
-
 
68
	ICC_CFLAGS += $(CMN2)
-
 
69
	SUNCC_CFLAGS += -xarch=sse
58
	SUNCC_CFLAGS += -xarch=sse
70
	DEFS += -DCONFIG_FENCES_P3
-
 
71
	CONFIG_HT = n
-
 
72
endif
59
endif
73
ifeq ($(MACHINE),core)
-
 
74
	CMN2 = -march=prescott -mfpmath=sse -mmmx -msse -msse2 -msse3
-
 
75
	GCC_CFLAGS += $(CMN2)
-
 
76
	ICC_CFLAGS += $(CMN2)
-
 
77
	SUNCC_CFLAGS += -xarch=sse3
-
 
78
	DEFS += -DCONFIG_FENCES_P4
-
 
79
endif
-
 
80
ifeq ($(MACHINE),pentium4)
60
ifeq ($(PROCESSOR),pentium4)
81
	GCC_CFLAGS += -march=pentium4 -mfpmath=sse -mmmx -msse -msse2
-
 
82
	ICC_CFLAGS += -march=pentium4
61
	CMN2 = -march=pentium4
83
	SUNCC_CFLAGS += -xarch=sse2
62
	SUNCC_CFLAGS += -xarch=sse2
84
	DEFS += -DCONFIG_FENCES_P4
-
 
85
endif
63
endif
86
 
-
 
87
## Own configuration directives
-
 
88
#
-
 
89
 
-
 
90
CONFIG_ACPI = y
-
 
91
 
-
 
92
## Compile with hierarchical page tables support.
-
 
93
#
-
 
94
 
-
 
95
CONFIG_PAGE_PT = y
-
 
96
DEFS += -DCONFIG_PAGE_PT
-
 
97
 
-
 
98
## Compile with i8042 controller support
-
 
99
#
-
 
100
 
-
 
101
CONFIG_I8042 = y
-
 
102
DEFS += -DCONFIG_I8042
-
 
103
 
-
 
104
## Accepted configuration directives
-
 
105
#
-
 
106
 
-
 
107
ifeq ($(CONFIG_SMP),y)
64
ifeq ($(PROCESSOR),core)
108
	DEFS += -DCONFIG_SMP
65
	CMN2 = -march=prescott
109
endif
-
 
110
ifeq ($(CONFIG_HT),y)
-
 
111
	DEFS += -DCONFIG_HT
66
	SUNCC_CFLAGS += -xarch=sse3
112
endif
-
 
113
ifeq ($(CONFIG_SIMICS_FIX),y)
-
 
114
	DEFS += -DCONFIG_SIMICS_FIX
-
 
115
endif
67
endif
116
 
68
 
117
## Compile with support for software integer division.
69
FPU_NO_CFLAGS = -mno-mmx -mno-sse -mno-sse2 -mno-sse3 -mno-3dnow
118
#
-
 
119
 
-
 
120
CONFIG_SOFTINT = y
70
GCC_CFLAGS += $(CMN2)
-
 
71
ICC_CFLAGS += $(CMN2)
121
 
72
 
122
ARCH_SOURCES = \
73
ARCH_SOURCES = \
123
	arch/$(ARCH)/src/context.S \
74
	arch/$(KARCH)/src/context.S \
124
	arch/$(ARCH)/src/debug/panic.s \
75
	arch/$(KARCH)/src/debug/panic.s \
125
	arch/$(ARCH)/src/delay.s \
76
	arch/$(KARCH)/src/delay.s \
126
	arch/$(ARCH)/src/asm.S \
77
	arch/$(KARCH)/src/asm.S \
127
	arch/$(ARCH)/src/proc/scheduler.c \
78
	arch/$(KARCH)/src/proc/scheduler.c \
128
	arch/$(ARCH)/src/proc/task.c \
79
	arch/$(KARCH)/src/proc/task.c \
129
	arch/$(ARCH)/src/proc/thread.c \
80
	arch/$(KARCH)/src/proc/thread.c \
130
	arch/$(ARCH)/src/bios/bios.c \
81
	arch/$(KARCH)/src/bios/bios.c \
131
	arch/$(ARCH)/src/smp/ap.S \
82
	arch/$(KARCH)/src/smp/ap.S \
132
	arch/$(ARCH)/src/smp/apic.c \
83
	arch/$(KARCH)/src/smp/apic.c \
133
	arch/$(ARCH)/src/smp/mps.c \
84
	arch/$(KARCH)/src/smp/mps.c \
134
	arch/$(ARCH)/src/smp/smp.c \
85
	arch/$(KARCH)/src/smp/smp.c \
135
	arch/$(ARCH)/src/atomic.S \
86
	arch/$(KARCH)/src/atomic.S \
136
	arch/$(ARCH)/src/smp/ipi.c \
87
	arch/$(KARCH)/src/smp/ipi.c \
137
	arch/$(ARCH)/src/ia32.c \
88
	arch/$(KARCH)/src/ia32.c \
138
	arch/$(ARCH)/src/interrupt.c \
89
	arch/$(KARCH)/src/interrupt.c \
139
	arch/$(ARCH)/src/pm.c \
90
	arch/$(KARCH)/src/pm.c \
140
	arch/$(ARCH)/src/userspace.c \
91
	arch/$(KARCH)/src/userspace.c \
141
	arch/$(ARCH)/src/cpu/cpu.c \
92
	arch/$(KARCH)/src/cpu/cpu.c \
142
	arch/$(ARCH)/src/mm/as.c \
93
	arch/$(KARCH)/src/mm/as.c \
143
	arch/$(ARCH)/src/mm/frame.c \
94
	arch/$(KARCH)/src/mm/frame.c \
144
	arch/$(ARCH)/src/mm/page.c \
95
	arch/$(KARCH)/src/mm/page.c \
145
	arch/$(ARCH)/src/mm/tlb.c \
96
	arch/$(KARCH)/src/mm/tlb.c \
146
	arch/$(ARCH)/src/ddi/ddi.c \
97
	arch/$(KARCH)/src/ddi/ddi.c \
147
	arch/$(ARCH)/src/drivers/i8254.c \
98
	arch/$(KARCH)/src/drivers/i8254.c \
148
	arch/$(ARCH)/src/drivers/i8259.c \
99
	arch/$(KARCH)/src/drivers/i8259.c \
149
	arch/$(ARCH)/src/drivers/ega.c \
100
	arch/$(KARCH)/src/drivers/vesa.c \
150
	arch/$(ARCH)/src/drivers/vesa.c \
101
	arch/$(KARCH)/src/boot/boot.S \
151
	arch/$(ARCH)/src/boot/boot.S \
102
	arch/$(KARCH)/src/boot/memmap.c \
152
	arch/$(ARCH)/src/boot/memmap.c \
103
	arch/$(KARCH)/src/fpu_context.c \
153
	arch/$(ARCH)/src/fpu_context.c \
104
	arch/$(KARCH)/src/debugger.c \
154
	arch/$(ARCH)/src/debugger.c
105
	arch/$(KARCH)/src/syscall.c