blob: 563da4f8e367a28dc8298abb6ffc42ae22070a54 [file] [log] [blame]
/*
* SPDX-License-Identifier: BSD-3-Clause
* SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
*/
#include <arch_helpers.h>
#include <assert.h>
#include <debug.h>
void __assert(const char *file, int line, const char *expression)
{
ERROR("Assertion \"%s\" failed %s:%d\n", expression, file, line);
while (true) {
wfe();
}
}
void __assert_func(const char *file, int line, const char *func, const char *expression)
{
ERROR("Assertion \"%s\" failed %s:%d, %s\n", expression, file, line, func);
while (true) {
wfe();
}
}