Snitch Runtime
Loading...
Searching...
No Matches
snitch_cluster_start.h
1// Copyright 2023 ETH Zurich and University of Bologna.
2// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3// SPDX-License-Identifier: Apache-2.0
4
5#pragma once
6
7#define SNRT_INIT_BSS
8#define SNRT_WAKE_UP
9#define SNRT_INIT_TLS
10#define SNRT_INIT_CLS
11#define SNRT_INIT_LIBS
12#define SNRT_CRT0_PRE_BARRIER
13#define SNRT_INVOKE_MAIN
14#define SNRT_CRT0_POST_BARRIER
15#define SNRT_CRT0_EXIT
16
17extern volatile uint32_t tohost;
18
19#ifndef OPENOCD_SEMIHOSTING
20static inline volatile uint32_t* snrt_exit_code_destination() {
21 return (volatile uint32_t*)&tohost;
22}
23#endif
24
25#include "start.h"