CHERIoT RTOS
A compartmentalised RTOS for CHERIoT hardware
Toggle main menu visibility
Loading...
Searching...
No Matches
sdk
include
platform
microsoft_cheriot_safe
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
10
static
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
MMIO_CAPABILITY
#define MMIO_CAPABILITY(type, name)
Provide a capability of the type volatile type * referring to the MMIO region exported in the linker ...
Definition
compartment-macros.h:90
Generated by
1.18.0