flash_device.cc (11430:bd1c6789c33f) | flash_device.cc (11487:bada30129c84) |
---|---|
1/* 2 * Copyright (c) 2013-2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 369 unchanged lines hidden (view full) --- 378 //use block as the logical start address of the block 379 block = locationTable[logic_page_addr].block * pagesPerBlock; 380 381 //assumption: clean will improve locality 382 for (uint32_t count = 0; count < pagesPerBlock; count++) { 383 assert(block + count < pagesPerDisk); 384 locationTable[block + count].page = (block + count) % 385 pagesPerBlock; | 1/* 2 * Copyright (c) 2013-2015 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 369 unchanged lines hidden (view full) --- 378 //use block as the logical start address of the block 379 block = locationTable[logic_page_addr].block * pagesPerBlock; 380 381 //assumption: clean will improve locality 382 for (uint32_t count = 0; count < pagesPerBlock; count++) { 383 assert(block + count < pagesPerDisk); 384 locationTable[block + count].page = (block + count) % 385 pagesPerBlock; |
386 ++count; | |
387 } 388 389 blockEmptyEntries[locationTable[logic_page_addr].block] = 390 pagesPerBlock; 391 /*stats*/ 392 ++stats.totalGCActivations; 393 394 DPRINTF(FlashDevice, "Remap with erase action returns %d ticks\n", --- 201 unchanged lines hidden --- | 386 } 387 388 blockEmptyEntries[locationTable[logic_page_addr].block] = 389 pagesPerBlock; 390 /*stats*/ 391 ++stats.totalGCActivations; 392 393 DPRINTF(FlashDevice, "Remap with erase action returns %d ticks\n", --- 201 unchanged lines hidden --- |