Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 6 commits into from
Jul 28, 2018

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
Member

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