1 |
/* |
/* |
2 |
* Copyright (C) 2005-2006 Anders Gavare. All rights reserved. |
* Copyright (C) 2005-2007 Anders Gavare. All rights reserved. |
3 |
* |
* |
4 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
5 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: machine_sandpoint.c,v 1.3 2006/06/24 10:19:19 debug Exp $ |
* $Id: machine_sandpoint.c,v 1.5 2007/02/10 16:29:20 debug Exp $ |
29 |
|
* |
30 |
|
* Currently broken; perhaps a problem with NetBSD/sandpoint itself. |
31 |
|
* See e.g. http://mail-index.netbsd.org/port-sandpoint/2006/01/02/0000.html |
32 |
|
* It seems that .../arch/sandpoint/sandpoint/machdep.c calls |
33 |
|
* consinit() before the BATs are initialized, which causes the consinit |
34 |
|
* call to fail. |
35 |
*/ |
*/ |
36 |
|
|
37 |
#include <stdio.h> |
#include <stdio.h> |
47 |
|
|
48 |
MACHINE_SETUP(sandpoint) |
MACHINE_SETUP(sandpoint) |
49 |
{ |
{ |
50 |
|
char tmpstr[300]; |
51 |
|
|
52 |
/* |
/* |
53 |
* NetBSD/sandpoint (http://www.netbsd.org/Ports/sandpoint/) |
* NetBSD/sandpoint (http://www.netbsd.org/Ports/sandpoint/) |
54 |
*/ |
*/ |
55 |
machine->machine_name = "Motorola Sandpoint"; |
machine->machine_name = "Motorola Sandpoint"; |
56 |
|
|
57 |
device_add(machine, "ns16550 irq=36 addr=0x800003f8"); |
snprintf(tmpstr, sizeof(tmpstr), "ns16550 irq=%s.cpu[%i] " |
58 |
|
"addr=0xfe0003f8", machine->path, machine->bootstrap_cpu); |
59 |
|
device_add(machine, tmpstr); |
60 |
|
|
61 |
/* r4 should point to first free byte after the loaded kernel: */ |
/* r4 should point to first free byte after the loaded kernel: */ |
62 |
cpu->cd.ppc.gpr[4] = 6 * 1048576; |
cpu->cd.ppc.gpr[4] = 6 * 1048576; |