blob: 2a8421bdf333de51f160b2aa691a8a2e40806df4 [file] [log] [blame]
// Copyright Microsoft and CHERIoT Contributors.
// SPDX-License-Identifier: MIT
#include "hello.h"
// This header adds an error handler that writes to the UART on error.
// Uncomment it and see that the compartmentalisation policy no longer passes.
//#include <fail-simulator-on-error.h>
/// Thread entry point.
void __cheri_compartment("hello") entry()
{
write("Hello world");
char stackBuffer[] = "Hello from the stack";
write(stackBuffer);
}