Advertisement
sbaldovi

fuse_divide_ram.diff

Mar 16th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.53 KB | None | 0 0
  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++ ) {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement