Line | |
---|
1 | .. SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | .. Copyright (C) 2021 embedded brains GmbH <rtems@embedded-brains.de> |
---|
4 | |
---|
5 | Target Hash |
---|
6 | *********** |
---|
7 | |
---|
8 | Each BSP must provide an implementation of the :c:func:`rtems_get_target_hash` |
---|
9 | directive. The |
---|
10 | `default implementation <https://git.rtems.org/rtems/tree/bsps/shared/start/gettargethash-default.c>`_ |
---|
11 | is based on the CPU counter frequency. A BSP-specific implementation may be |
---|
12 | provided which covers also for example the device tree, settings of the memory |
---|
13 | controller, processor and bus frequencies, a serial number of a chip, etc. For |
---|
14 | a BSP-specific implementation start with the default implementation and add |
---|
15 | more values to the target hash using the functions :c:func:`_Hash_Add_data` and |
---|
16 | :c:func:`_Hash_Add_string`. The target hash can be used to distinguish test |
---|
17 | suite results obtained from different target systems. |
---|
Note: See
TracBrowser
for help on using the repository browser.