| 182 | } |
| 183 | |
| 184 | void Port::ReleaseBuffer(unsigned index){ |
| 185 | assert(index < 8); |
| 186 | |
| 187 | releaseLock(&bufferLocks[index]); |
| 188 | bufferSemaphore.Signal(); |
| 189 | } |
| 190 | |
| 191 | int Port::ReadDiskBlock(uint64_t lba, uint32_t count, void* _buffer){ |
| 192 | uint64_t blockCount = ((count + (blocksize - 1)) / blocksize); |