Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

fuse_divide_ram.diff

By: sbaldovi on Mar 16th, 2012  |  syntax: Diff  |  size: 0.53 KB  |  views: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Index: peripherals/ide/divide.c
  2. ===================================================================
  3. --- peripherals/ide/divide.c    (revision 4683)
  4. +++ peripherals/ide/divide.c    (working copy)
  5. @@ -484,6 +484,8 @@
  6.      libspectrum_byte *memory =
  7.        memory_pool_allocate_persistent( DIVIDE_PAGES * DIVIDE_PAGE_LENGTH, 1 );
  8.  
  9. +    memset( memory, 0, DIVIDE_PAGES * DIVIDE_PAGE_LENGTH );
  10. +
  11.      for( i = 0; i < DIVIDE_PAGES; i++ ) {
  12.        divide_ram[i] = memory + i * DIVIDE_PAGE_LENGTH;
  13.        for( j = 0; j < MEMORY_PAGES_IN_8K; j++ ) {