23 lines
384 B
C
23 lines
384 B
C
/*
|
|
* Copyright (c) 2015, Xilinx Inc. and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/*
|
|
* @file cpu.h
|
|
* @brief CPU specific primatives
|
|
*/
|
|
|
|
#ifndef __METAL_X86_CPU__H__
|
|
#define __METAL_X86_CPU__H__
|
|
|
|
#include <metal/compiler.h>
|
|
|
|
static inline void metal_cpu_yield(void)
|
|
{
|
|
metal_asm volatile("rep; nop");
|
|
}
|
|
|
|
#endif /* __METAL_X86_CPU__H__ */
|