Skip to content

Conversation

@GabrielRavier
Copy link

No description provided.

@fig02
Copy link
Collaborator

fig02 commented Nov 2, 2025

Merging tomorrow to give room for any more possible feedback

Comment on lines 3 to 5
// Buffer used during the process of reading from the disk
// Used to directly read individual LBAs/blocks from the disk before copying to the final destination
// As blocks/LBAs are read directly into this buffer from the disk, it has to be 16-byte aligned
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need to write "block/LBA", Logical Block Addresses are more like pointers to data than the data itself, so you can just write "block" or "logical block" for this.

On alignment, 16 bytes is a recommended alignment to prevent data cache alignment but for DMA the minimum sane RAM alignment is 8 bytes, so I believe "should be" is slightly more appropriate than "has to be" in this case.

Suggested change
// Buffer used during the process of reading from the disk
// Used to directly read individual LBAs/blocks from the disk before copying to the final destination
// As blocks/LBAs are read directly into this buffer from the disk, it has to be 16-byte aligned
// Buffer used during the process of reading from the disk.
// Used to directly read individual blocks from the disk before copying to the final destination.
// As blocks are read directly into this buffer from the disk, it should be 16-byte aligned.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've adjusted the commit accordingly

@GabrielRavier GabrielRavier force-pushed the feat/document-src-n64dd-data-buffer branch from a029dc6 to 4a15a93 Compare November 2, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants