Commit | Line | Data |
---|---|---|
7e38dc2e MD |
1 | // SPDX-License-Identifier: MIT |
2 | /* | |
3 | * Copyright (C) 2024 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
4 | */ | |
5 | ||
6 | #ifndef _SIDE_COMPILER_H | |
7 | #define _SIDE_COMPILER_H | |
8 | ||
9 | //TODO: implement per-architecture busy loop "pause"/"rep; nop;" instruction. | |
10 | static inline | |
11 | void side_cpu_relax(void) | |
12 | { | |
13 | asm volatile ("" : : : "memory"); | |
14 | } | |
15 | ||
16 | #endif /* _SIDE_COMPILER_H */ |