Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 1486f3b | 2018-06-26 10:30:10 +0100 | [diff] [blame] | 2 | * Copyright (c) 2017-2018, Arm Limited. All rights reserved. |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | 1486f3b | 2018-06-26 10:30:10 +0100 | [diff] [blame] | 7 | #ifndef CACTUS_TESTS_H |
| 8 | #define CACTUS_TESTS_H |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 9 | |
| 10 | /* |
| 11 | * Test functions |
| 12 | */ |
| 13 | |
| 14 | /* |
| 15 | * Test other things like the version number returned by SPM. |
| 16 | */ |
| 17 | void misc_tests(void); |
| 18 | |
| 19 | /* |
| 20 | * The Arm TF is responsible for setting up system registers on behalf of the |
| 21 | * Secure Partition. For example, TF is supposed to allow Secure Partitions to |
| 22 | * perform cache maintenance operations (by setting the SCTLR_EL1.UCI bit). |
| 23 | * |
| 24 | * This function attempts to verify that we indeed have access to these system |
| 25 | * features from S-EL0. These tests report their results on the UART. They do |
| 26 | * not recover from a failure : when an error is encountered they will most |
| 27 | * likely trigger an exception into S-EL1. |
| 28 | */ |
| 29 | void system_setup_tests(void); |
| 30 | |
| 31 | /* |
| 32 | * Exercise the SP_MEMORY_ATTRIBUTES_SET_AARCH64 SMC interface. A variety of |
| 33 | * valid and invalid requests to change memory attributes are tested. |
| 34 | * |
| 35 | * These tests report their results on the UART. They do not recover from a |
| 36 | * failure : when an error is encountered they endlessly loop. |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 37 | */ |
Antonio Nino Diaz | 1486f3b | 2018-06-26 10:30:10 +0100 | [diff] [blame] | 38 | void mem_attr_changes_tests(void); |
Sandrine Bailleux | 3cd87d7 | 2018-10-09 11:12:55 +0200 | [diff] [blame] | 39 | |
Antonio Nino Diaz | 1486f3b | 2018-06-26 10:30:10 +0100 | [diff] [blame] | 40 | #endif /* CACTUS_TESTS_H */ |