25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_evbmips.c,v 1.27 2007/06/15 18:08:10 debug Exp $ |
* $Id: machine_evbmips.c,v 1.30 2007/06/17 02:17:45 debug Exp $ |
29 |
* |
* |
30 |
* COMMENT: MIPS evaluation boards (e.g. Malta) |
* COMMENT: MIPS evaluation boards (e.g. Malta) |
31 |
*/ |
*/ |
55 |
/* See http://www.netbsd.org/ports/evbmips/ for more info. */ |
/* See http://www.netbsd.org/ports/evbmips/ for more info. */ |
56 |
|
|
57 |
switch (machine->machine_subtype) { |
switch (machine->machine_subtype) { |
58 |
|
|
59 |
case MACHINE_EVBMIPS_MALTA: |
case MACHINE_EVBMIPS_MALTA: |
60 |
case MACHINE_EVBMIPS_MALTA_BE: |
case MACHINE_EVBMIPS_MALTA_BE: |
61 |
if (machine->emulated_hz == 0) |
if (machine->emulated_hz == 0) |
141 |
cpu->cd.mips.gpr[MIPS_GPR_A3] = machine->physical_ram_in_mb * 1048576; |
cpu->cd.mips.gpr[MIPS_GPR_A3] = machine->physical_ram_in_mb * 1048576; |
142 |
/* Hm. Linux ignores a3. */ |
/* Hm. Linux ignores a3. */ |
143 |
|
|
144 |
/* |
/* Set the Core ID. See maltareg.h for more info. */ |
|
* TODO: |
|
|
* Core ID numbers. |
|
|
* How much of this is not valid for PBxxxx? |
|
|
* |
|
|
* See maltareg.h for more info. |
|
|
*/ |
|
145 |
store_32bit_word(cpu, (int32_t)(0x80000000 + MALTA_REVISION), |
store_32bit_word(cpu, (int32_t)(0x80000000 + MALTA_REVISION), |
146 |
(1 << 10) + 0x26); |
(1 << 10) + 0x26); |
147 |
|
|
175 |
|
|
176 |
MACHINE_DEFAULT_RAM(evbmips) |
MACHINE_DEFAULT_RAM(evbmips) |
177 |
{ |
{ |
178 |
machine->physical_ram_in_mb = 64; |
machine->physical_ram_in_mb = 128; |
179 |
} |
} |
180 |
|
|
181 |
|
|