[kernel][arm64] Make zx_debug_read block instead of SHOULD_WAIT

zx_debug_read is supposed to block until at least one character is
read.  However, prior to this CL, on arm64, zx_debug_read would return
ZX_ERR_SHOULD_WAIT when no characters were available to be read.  This
change fixes the arm64 side to match the x86 side.

Change motmot uart driver to propagate the return status from ReadChar
rather than return ZX_ERR_INTERNAL.

Fixed: 103213
Run-All-Tests: true
Change-Id: I3f01e775f890ae9fbe7da09888ee54cb64ce8bb7
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/693507
Reviewed-by: Gianfranco Valentino <gevalentino@google.com>
Reviewed-by: Travis Geiselbrecht <travisg@google.com>
Fuchsia-Auto-Submit: Nick Maniscalco <maniscalco@google.com>
Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com>
2 files changed
tree: ddc0da02401b68791eebfd529bf5ddff3f2b4823
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. products/
  7. scripts/
  8. sdk/
  9. src/
  10. third_party/
  11. tools/
  12. zircon/
  13. .clang-format
  14. .clang-tidy
  15. .editorconfig
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.

We expect everyone interacting with our project to respect our code of conduct.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.