1 // SPDX-License-Identifier: MIT
3 * Copyright (C) 2024 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
6 #ifndef _SIDE_COMPILER_H
7 #define _SIDE_COMPILER_H
9 #if defined(__x86_64__) || defined(__i386__)
11 void side_cpu_relax(void)
13 asm volatile ("rep; nop" : : : "memory");
16 //TODO: implement per-architecture busy loop "pause"/"rep; nop;" instruction.
18 void side_cpu_relax(void)
20 asm volatile ("" : : : "memory");
24 #endif /* _SIDE_COMPILER_H */
This page took 0.190029 seconds and 5 git commands to generate.