Skip to content

Fixes to SYS_READ changes in PR #727 per review.#729

Merged
xor-gate merged 6 commits intostlink-org:masterfrom
donmr:master
Jul 28, 2018
Merged

Fixes to SYS_READ changes in PR #727 per review.#729
xor-gate merged 6 commits intostlink-org:masterfrom
donmr:master

Conversation

@donmr
Copy link
Contributor

@donmr donmr commented Jul 27, 2018

I agree with Fabien-Chouteau's review items. Thanks for catching my sloppy errors.
Here is a PR with those things fixed.

donmr added 5 commits July 26, 2018 09:02
of a file.  fread (on stm32) get them (say 3 bytes), then askes for
more.  do_semihosting gets a read return of 0 and tries to write that.
mem_write alters the address to be aligned and overwrites then 3 bytes
from the last read.

This change simply tells mem_write to do nothing if len is 0.
@donmr donmr changed the title Fixes to SYS_READ changes in PR #272 per review. Fixes to SYS_READ changes in PR #727 per review. Jul 27, 2018
@xor-gate
Copy link
Contributor

Thanks @Fabien-Chouteau and @donmr !

@xor-gate xor-gate merged commit 07a76b0 into stlink-org:master Jul 28, 2018
donmr added a commit to donmr/stlink that referenced this pull request Jul 28, 2018
Fixes to SYS_READ changes in PR stlink-org#727 per review. (stlink-org#729)
donmr added a commit to donmr/stlink that referenced this pull request Jul 28, 2018
Fixes to SYS_READ changes in PR stlink-org#727 per review. (stlink-org#729)
@xor-gate xor-gate added this to the Next milestone Aug 1, 2018
@Nightwalker-87 Nightwalker-87 linked an issue Mar 18, 2020 that may be closed by this pull request
6 tasks
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Semihosting SYS_READ returns incorrect value on EOF

4 participants