Subversion Repositories HelenOS

Rev

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

Rev 2125 Rev 2454
Line 35... Line 35...
35
 
35
 
36
KERNEL_LOAD_ADDRESS = 0x80100000
36
KERNEL_LOAD_ADDRESS = 0x80100000
37
INIT_ADDRESS = 0x81000000
37
INIT_ADDRESS = 0x81000000
38
INIT_SIZE = 262144
38
INIT_SIZE = 262144
39
 
39
 
40
CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
40
GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss
41
 
41
 
42
DEFS += -D__32_BITS__ -DMACHINE=$(MACHINE) -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
42
DEFS += -D__32_BITS__ -DMACHINE=$(MACHINE) -DKERNEL_LOAD_ADDRESS=${KERNEL_LOAD_ADDRESS} -DINIT_ADDRESS=${INIT_ADDRESS} -DINIT_SIZE=${INIT_SIZE}
43
 
43
 
44
## Compile with hierarchical page tables support.
44
## Compile with hierarchical page tables support.
45
#
45
#
Line 64... Line 64...
64
	BFD_NAME = elf32-bigmips
64
	BFD_NAME = elf32-bigmips
65
	BFD = ecoff-bigmips --impure
65
	BFD = ecoff-bigmips --impure
66
	TARGET = mips-sgi-irix5
66
	TARGET = mips-sgi-irix5
67
	TOOLCHAIN_DIR = /usr/local/mips/bin
67
	TOOLCHAIN_DIR = /usr/local/mips/bin
68
	KERNEL_LOAD_ADDRESS = 0x88002000
68
	KERNEL_LOAD_ADDRESS = 0x88002000
69
	CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -march=r4600
69
	GCC_CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -march=r4600
70
	INIT_ADDRESS = 0
70
	INIT_ADDRESS = 0
71
	INIT_SIZE = 0
71
	INIT_SIZE = 0
72
endif
72
endif
73
ifeq ($(MACHINE),lgxemul)
73
ifeq ($(MACHINE),lgxemul)
74
	BFD_NAME = elf32-tradlittlemips
74
	BFD_NAME = elf32-tradlittlemips
Line 78... Line 78...
78
ifeq ($(MACHINE),bgxemul)
78
ifeq ($(MACHINE),bgxemul)
79
	BFD_NAME = elf32-bigmips
79
	BFD_NAME = elf32-bigmips
80
	BFD = ecoff-bigmips
80
	BFD = ecoff-bigmips
81
	TARGET = mips-sgi-irix5
81
	TARGET = mips-sgi-irix5
82
	TOOLCHAIN_DIR = /usr/local/mips/bin
82
	TOOLCHAIN_DIR = /usr/local/mips/bin
83
	CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -mips3
83
	GCC_CFLAGS += -EB -DBIG_ENDIAN -DARCH_HAS_FPU -mips3
84
	INIT_ADDRESS = 0x81800000
84
	INIT_ADDRESS = 0x81800000
85
endif
85
endif
86
ifeq ($(MACHINE),simics)
86
ifeq ($(MACHINE),simics)
87
	# SIMICS 4kc emulation is broken, although for instructions
87
	# SIMICS 4kc emulation is broken, although for instructions
88
	# that do not bother us
88
	# that do not bother us
89
	
89
	
90
	BFD_NAME = elf32-tradlittlemips
90
	BFD_NAME = elf32-tradlittlemips
91
	BFD = elf32-tradlittlemips
91
	BFD = elf32-tradlittlemips
92
	CFLAGS += -mhard-float -mips3 -DTLBCNT=16
92
	GCC_CFLAGS += -mhard-float -mips3 -DTLBCNT=16
93
	TLBCNT = 16
93
	TLBCNT = 16
94
endif
94
endif
95
ifeq ($(MACHINE),msim)
95
ifeq ($(MACHINE),msim)
96
	BFD_NAME = elf32-tradlittlemips
96
	BFD_NAME = elf32-tradlittlemips
97
	BFD = binary
97
	BFD = binary
98
	CFLAGS += -mhard-float -mips3
98
	GCC_CFLAGS += -mhard-float -mips3
99
endif
99
endif
100
 
100
 
101
## Compile with support for software integer division.
101
## Compile with support for software integer division.
102
#
102
#
103
 
103