Repository navigation
Commit 3e59cc2
mx4sio: read and write buffers that are not word aligned
FatFs passes the caller's buffer to the block device, at any offset: a
read from an odd position in a file gives an odd address. The SIO2 DMA and
reverse_buffer work on words, so such a buffer ended in an address error
exception on the IOP, repeated forever.
Take those a sector at a time through an aligned buffer. Aligned buffers
are transferred as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d41ea62 commit 3e59cc2
2 files changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
580 | 586 | | |
581 | 587 | | |
582 | 588 | | |
| |||
588 | 594 | | |
589 | 595 | | |
590 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
591 | 607 | | |
592 | 608 | | |
593 | 609 | | |
| |||
642 | 658 | | |
643 | 659 | | |
644 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
645 | 671 | | |
646 | 672 | | |
647 | 673 | | |
| |||
0 commit comments