mirror of
https://github.com/OpenAMP/libmetal.git
synced 2026-08-18 11:29:49 +08:00
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:
committed by
Arnaud Pouliquen
parent
1112f2cdaf
commit
1ed90fd967
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user