CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Loading...
Searching...
No Matches
platform-simulation_exit.hh
1// Copyright Microsoft and CHERIoT Contributors.
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
6#ifdef SIMULATION
7# include <platform-uart.hh>
8# include <stdint.h>
9
10static void platform_simulation_exit(uint32_t code)
11{
12 // Microsoft's SAFE platform exits if UART 0 writes above ASCII
13 MMIO_CAPABILITY(Uart, uart)->blocking_write(0x80 + code);
14}
15#endif
#define MMIO_CAPABILITY(type, name)
Provide a capability of the type volatile type * referring to the MMIO region exported in the linker ...