25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $Id: dev_bebox.c,v 1.13 2007/02/16 19:57:56 debug Exp $ |
* $Id: dev_bebox.c,v 1.14 2007/06/15 18:44:19 debug Exp $ |
29 |
|
* |
30 |
|
* COMMENT: BeBox motherboard registers and interrupt controller |
31 |
* |
* |
|
* Emulation of BeBox motherboard registers (and interrupt controller). |
|
32 |
* See the following URL for more information: |
* See the following URL for more information: |
33 |
* |
* |
34 |
* http://www.bebox.nu/history.php?s=history/benews/benews27 |
* http://www.bebox.nu/history.php?s=history/benews/benews27 |
204 |
char n[300]; |
char n[300]; |
205 |
struct machine *machine = devinit->machine; |
struct machine *machine = devinit->machine; |
206 |
|
|
207 |
d = malloc(sizeof(struct bebox_data)); |
CHECK_ALLOCATION(d = malloc(sizeof(struct bebox_data))); |
|
if (d == NULL) { |
|
|
fprintf(stderr, "out of memory\n"); |
|
|
exit(1); |
|
|
} |
|
208 |
memset(d, 0, sizeof(struct bebox_data)); |
memset(d, 0, sizeof(struct bebox_data)); |
209 |
|
|
210 |
/* Connect to the two BeBox CPUs: */ |
/* Connect to the two BeBox CPUs: */ |