/[gxemul]/trunk/src/devices/dev_bebox.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_bebox.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 41 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC
# Line 25  Line 25 
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
# Line 203  DEVINIT(bebox) Line 204  DEVINIT(bebox)
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:  */

Legend:
Removed from v.41  
changed lines
  Added in v.42

  ViewVC Help
Powered by ViewVC 1.1.26