Fix getMaxUsToTicks function in RISC-V timer.h

The getMaxUsToTicks function is supposed to return maximum
amount of time you can pass to usToTicks without overflow,
but in RISC-V implementation it returns ticks instead. This
patch corrects it so it's implementation is akin to those in
other platforms.

Signed-off-by: Marcin Witkowski <mwitkowski@antmicro.com>
(cherry picked from commit b9a8967954a229a56d514409aa992b28509da71a)

Change-Id: If7b0317dcd4ac7c19249479cb85fa09a9bdd210b
1 file changed
tree: db9fd6aaaa471c852eb0275f6c665f4133b8298f
  1. .github/
  2. .reuse/
  3. configs/
  4. include/
  5. libsel4/
  6. LICENSES/
  7. manual/
  8. src/
  9. tools/
  10. .cmake-format.yaml
  11. .gitignore
  12. .licenseignore
  13. CAVEATS-generic.md
  14. CAVEATS-ia32.md
  15. CHANGES
  16. CMakeLists.txt
  17. CODE_OF_CONDUCT.md
  18. config.cmake
  19. CONTRIBUTING.md
  20. CONTRIBUTORS.md
  21. FindseL4.cmake
  22. gcc.cmake
  23. gdb-macros
  24. LICENSE.md
  25. llvm.cmake
  26. README.md
  27. VERSION
README.md

The seL4 microkernel

This project contains the source code of seL4 microkernel.

For details about the seL4 microkernel, including details about its formal correctness proof, please see the sel4.systems website and associated FAQ.

DOIs for citing recent releases of this repository:

  • DOI

We welcome contributions to seL4. Please see the website for information on how to contribute.

This repository is usually not used in isolation, but as part of the build system in a larger project.

seL4 Basics

Community

Manual

A hosted version of the manual for the most recent release can be found here.

A web version of the API can be found here

Repository Overview

  • include and src: C and ASM source code of seL4
  • tools: build tools
  • libsel4: C bindings for the seL4 ABI
  • manual: LaTeX sources of the seL4 reference manual

Build Instructions

See the seL4 website for build instructions.

Status

A list of releases and current project status can be found under seL4 releases.