1 /* 2 * Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 /* 8 * @file cpu.h 9 * @brief CPU specific primitives 10 */ 11 12 #ifndef __METAL_X86_CPU__H__ 13 #define __METAL_X86_CPU__H__ 14 15 #include <metal/compiler.h> 16 metal_cpu_yield(void)17static inline void metal_cpu_yield(void) 18 { 19 metal_asm volatile("rep; nop"); 20 } 21 22 #endif /* __METAL_X86_CPU__H__ */ 23