syscall: Move arch specific syscall code into its own header

Split out the arch specific syscall code to reduce include pollution
from other arch related headers.  For example on ARM its possible to get
errno.h included via SoC specific headers.  Which created an interesting
compile issue because of the order of syscall & errno/errno syscall
inclusion.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2018-07-31 12:42:59 -05:00 committed by Kumar Gala
commit 4b22ba7e4b
11 changed files with 566 additions and 449 deletions

View file

@ -12,7 +12,7 @@
#include <zephyr/types.h>
#include <syscall_list.h>
#include <syscall_macros.h>
#include <arch/cpu.h>
#include <arch/syscall.h>
#ifdef __cplusplus
extern "C" {