Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | pre_tf_build() { |
| 9 | # Apply a patch which attempts to write to the translation tables (by |
| 10 | # changing the memory attributes of a region) immediately after the |
| 11 | # translation tables have been made read-only, triggering a data abort. |
| 12 | apply_tf_patch "readonly_xlat_tables/arm_sp_min_setup_write_after_readonly.patch" |
| 13 | # Apply patch which allows a 'Panic at PC:...' message to be printed |
| 14 | # when the data abort happens. |
| 15 | apply_tf_patch "readonly_xlat_tables/sp_min_data_abort_print_panic_message.patch" |
| 16 | } |
| 17 | |
| 18 | post_tf_archive() { |
| 19 | aarch32="1" model="base-aemv8a" gen_model_params |
| 20 | } |
| 21 | |
| 22 | fetch_tf_resource() { |
| 23 | uart="0" timeout="60" file="timeout_spmin_roxlattables.exp" track_expect |
| 24 | uart="1" timeout="60" file="crash_panic.exp" track_expect |
| 25 | } |