/[gxemul]/trunk/src/memory.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/memory.c

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

revision 2 by dpavlin, Mon Oct 8 16:17:48 2007 UTC revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *   *
27   *   *
28   *  $Id: memory.c,v 1.163 2005/03/14 12:49:17 debug Exp $   *  $Id: memory.c,v 1.164 2005/04/09 21:10:54 debug Exp $
29   *   *
30   *  Functions for handling the memory of an emulated machine.   *  Functions for handling the memory of an emulated machine.
31   */   */
# Line 423  void memory_device_register(struct memor Line 423  void memory_device_register(struct memor
423          mem->n_mmapped_devices++;          mem->n_mmapped_devices++;
424    
425          if (baseaddr < mem->mmap_dev_minaddr)          if (baseaddr < mem->mmap_dev_minaddr)
426                  mem->mmap_dev_minaddr = baseaddr;                  mem->mmap_dev_minaddr = baseaddr & ~0xfff;
427          if (baseaddr + len > mem->mmap_dev_maxaddr)          if (baseaddr + len > mem->mmap_dev_maxaddr)
428                  mem->mmap_dev_maxaddr = baseaddr + len;                  mem->mmap_dev_maxaddr = (((baseaddr + len) - 1) | 0xfff) + 1;
429  }  }
430    
431    

Legend:
Removed from v.2  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26