Subversion Repositories HelenOS

Rev

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

Rev 3607 Rev 3743
Line 83... Line 83...
83
ifeq ($(CONFIG_SGCN),y)
83
ifeq ($(CONFIG_SGCN),y)
84
        DEFS += -DCONFIG_SGCN
84
        DEFS += -DCONFIG_SGCN
85
endif
85
endif
86
 
86
 
87
ifeq ($(MACHINE),us)
87
ifeq ($(MACHINE),us)
-
 
88
	USARCH = sun4u
88
    DEFS += -DUS
89
	DEFS += -DUS
89
endif
90
endif
90
 
91
 
91
ifeq ($(MACHINE),us3)
92
ifeq ($(MACHINE),us3)
-
 
93
	USARCH = sun4u
92
	DEFS += -DUS3
94
	DEFS += -DUS3
93
endif
95
endif
94
 
96
 
-
 
97
ifeq ($(MACHINE),sun4v)
-
 
98
	USARCH = sun4v
-
 
99
	DEFS += -DSUN4V
-
 
100
	DEFS += -DUS3 # TODO: do not forget to remove this line, it is here only to make the code compilable even when the sun4v port is not fully implemented yet
-
 
101
endif
-
 
102
 
-
 
103
 
-
 
104
# common for sun4u and sun4v
95
ARCH_SOURCES = \
105
ARCH_SOURCES = \
-
 
106
	arch/$(ARCH)/src/$(USARCH)/start.S \
-
 
107
	arch/$(ARCH)/src/trap/$(USARCH)/trap_table.S \
-
 
108
	arch/$(ARCH)/src/$(USARCH)/asm.S \
-
 
109
	arch/$(ARCH)/src/$(USARCH)/sparc64.c
-
 
110
 
-
 
111
# sun4u-specific, not #ifdef'd yet in order to make the code compilable
-
 
112
ARCH_SOURCES += \
96
	arch/$(ARCH)/src/cpu/cpu.c \
113
	arch/$(ARCH)/src/cpu/cpu.c \
97
	arch/$(ARCH)/src/asm.S \
114
	arch/$(ARCH)/src/asm.S \
98
	arch/$(ARCH)/src/panic.S \
115
	arch/$(ARCH)/src/panic.S \
99
	arch/$(ARCH)/src/console.c \
116
	arch/$(ARCH)/src/console.c \
100
	arch/$(ARCH)/src/context.S \
117
	arch/$(ARCH)/src/context.S \
Line 103... Line 120...
103
	arch/$(ARCH)/src/mm/as.c \
120
	arch/$(ARCH)/src/mm/as.c \
104
	arch/$(ARCH)/src/mm/cache.S \
121
	arch/$(ARCH)/src/mm/cache.S \
105
	arch/$(ARCH)/src/mm/frame.c \
122
	arch/$(ARCH)/src/mm/frame.c \
106
	arch/$(ARCH)/src/mm/page.c \
123
	arch/$(ARCH)/src/mm/page.c \
107
	arch/$(ARCH)/src/mm/tlb.c \
124
	arch/$(ARCH)/src/mm/tlb.c \
108
	arch/$(ARCH)/src/sparc64.c \
-
 
109
	arch/$(ARCH)/src/start.S \
-
 
110
	arch/$(ARCH)/src/proc/scheduler.c \
125
	arch/$(ARCH)/src/proc/scheduler.c \
111
	arch/$(ARCH)/src/proc/thread.c \
126
	arch/$(ARCH)/src/proc/thread.c \
112
	arch/$(ARCH)/src/trap/mmu.S \
127
	arch/$(ARCH)/src/trap/mmu.S \
113
	arch/$(ARCH)/src/trap/trap_table.S \
-
 
114
	arch/$(ARCH)/src/trap/trap.c \
128
	arch/$(ARCH)/src/trap/trap.c \
115
	arch/$(ARCH)/src/trap/exception.c \
129
	arch/$(ARCH)/src/trap/exception.c \
116
	arch/$(ARCH)/src/trap/interrupt.c \
130
	arch/$(ARCH)/src/trap/interrupt.c \
117
	arch/$(ARCH)/src/ddi/ddi.c \
131
	arch/$(ARCH)/src/ddi/ddi.c \
118
	arch/$(ARCH)/src/drivers/tick.c \
132
	arch/$(ARCH)/src/drivers/tick.c \
119
	arch/$(ARCH)/src/drivers/kbd.c \
133
	arch/$(ARCH)/src/drivers/kbd.c \
120
	arch/$(ARCH)/src/drivers/scr.c \
134
	arch/$(ARCH)/src/drivers/scr.c \
121
	arch/$(ARCH)/src/drivers/sgcn.c \
135
	arch/$(ARCH)/src/drivers/sgcn.c \
122
	arch/$(ARCH)/src/drivers/pci.c
136
	arch/$(ARCH)/src/drivers/pci.c
123
 
137
 
-
 
138
# sun4v-specific sources
-
 
139
ifeq ($(USARCH),sun4v)
-
 
140
ARCH_SOURCES += \
-
 
141
	arch/$(ARCH)/src/drivers/niagara.c
-
 
142
endif
124
 
143
 
125
ifeq ($(CONFIG_SMP),y)
144
ifeq ($(CONFIG_SMP),y)
126
ARCH_SOURCES += \
145
ARCH_SOURCES += \
127
	arch/$(ARCH)/src/smp/ipi.c \
146
	arch/$(ARCH)/src/smp/ipi.c \
128
	arch/$(ARCH)/src/smp/smp.c
147
	arch/$(ARCH)/src/smp/smp.c