lib: system: fix missing metal_yield API for generic systems.

The metal_yield API needs also to be declared for the baremetal systems.
This fix build issue in Open-amp for generic system:

/github/workspace/open-amp/lib/rpmsg/rpmsg_virtio.c:275:17:
error: implicit declaration of function 'metal_yield'
275 |                 metal_yield();
    |                 ^~~~~~~~~~~

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
This commit is contained in:
Arnaud Pouliquen
2024-10-21 10:50:58 +02:00
committed by Arnaud Pouliquen
parent 1112f2cdaf
commit 1ed90fd967
+3
View File
@@ -17,6 +17,7 @@
#define __METAL_GENERIC_SYS__H__
#include <limits.h>
#include <metal/cpu.h>
#include <metal/errno.h>
#include <stdio.h>
#include <stdlib.h>
@@ -44,6 +45,8 @@ struct metal_state {
struct metal_common_state common;
};
#define metal_yield() metal_cpu_yield()
#ifdef METAL_INTERNAL
/**