SHARE
TWEET

fuse_divide_ram.diff

sbaldovi Mar 16th, 2012 6 Never
  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++ ) {
RAW Paste Data
Top