/[gxemul]/trunk/src/devices/dev_algor.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_algor.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_algor.c,v 1.5 2007/01/20 13:26:20 debug Exp $   *  $Id: dev_algor.c,v 1.6 2007/06/15 18:44:18 debug Exp $
29   *   *
30   *  Algor misc. stuff.   *  COMMENT: Algor P5064 misc. stuff
31   *   *
32   *  TODO: This is hardcoded for P5064 right now. Generalize it to P40xx etc.   *  TODO: This is hardcoded for P5064 right now. Generalize it to P40xx etc.
33   *   *
# Line 202  DEVICE_ACCESS(algor) Line 202  DEVICE_ACCESS(algor)
202  DEVINIT(algor)  DEVINIT(algor)
203  {  {
204          char tmpstr[200];          char tmpstr[200];
205          struct algor_data *d = malloc(sizeof(struct algor_data));          struct algor_data *d;
206          if (d == NULL) {  
207                  fprintf(stderr, "out of memory\n");          CHECK_ALLOCATION(d = malloc(sizeof(struct algor_data)));
                 exit(1);  
         }  
208          memset(d, 0, sizeof(struct algor_data));          memset(d, 0, sizeof(struct algor_data));
209    
210          d->base_addr = devinit->addr;          d->base_addr = devinit->addr;

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

  ViewVC Help
Powered by ViewVC 1.1.26