tree: 9173a284e34f763780038b601825af21939c7891 [path history] [tgz]
  1. freestanding/
  2. abs_mmio.c
  3. abs_mmio.h
  4. absl_status.h
  5. bitfield.c
  6. bitfield.h
  7. BUILD
  8. csr.h
  9. csr_registers.h
  10. global_mock.h
  11. hardened.c
  12. hardened.h
  13. hardened_memory.c
  14. hardened_memory.h
  15. hardened_memory_unittest.cc
  16. hardened_unittest.cc
  17. macros.h
  18. math.c
  19. math.h
  20. math_builtins.c
  21. math_builtins_unittest.cc
  22. math_unittest.cc
  23. memory.c
  24. memory.h
  25. mmio.c
  26. mmio.h
  27. mock_abs_mmio.cc
  28. mock_abs_mmio.h
  29. mock_mmio.cc
  30. mock_mmio.h
  31. mock_mmio_test.cc
  32. mock_mmio_test_utils.h
  33. multibits.h
  34. multibits_asm.h
  35. random_order.c
  36. random_order.h
  37. README.md
  38. status.c
  39. status.h
  40. status_unittest.cc
  41. stdasm.h
sw/device/lib/base/README.md

libbase: The OpenTitan Standard Library

This subtree provides headers and libraries known collectively as libbase, which serve as OpenTitan's ersatz libc.

Differences from a libc

libbase is not a libc, even though it implements a number of libc symbols, and should not be used as such. libbase is, rather, a place for base libraries which may need to make use of more compiler/platform intrinsics than average, in order to present a safe, stable, and uesful interface that other parts of OpenTitan can rely on.

In general, a library exposing general utilities for working close to the hardware should live in this subtree: for example, a library providing memcpy and related symbols. A library for talking to a particular peripheral, like a UART port, is a non-example.