From 1fef0a581bf584223ad87bdaf729ccb986abb49f Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 14 May 2009 19:09:11 -0700 Subject: [PATCH] core: move core definitions to include/core.h Create a new include file for core-specific definitions, and put it in the include directory. Signed-off-by: H. Peter Anvin --- core/hello.c | 6 +----- core/include/core.h | 10 ++++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 core/include/core.h diff --git a/core/hello.c b/core/hello.c index 22ddad0..c4b2803 100644 --- a/core/hello.c +++ b/core/hello.c @@ -1,9 +1,5 @@ -#include #include - -void __cdecl core_intcall(uint8_t, const com32sys_t *, com32sys_t *); -void __cdecl core_farcall(uint32_t, const com32sys_t *, com32sys_t *); -int __cdecl core_cfarcall(uint32_t, const void *, uint32_t); +#include "core.h" void myputchar(int c) { diff --git a/core/include/core.h b/core/include/core.h new file mode 100644 index 0000000..bfbd607 --- /dev/null +++ b/core/include/core.h @@ -0,0 +1,10 @@ +#ifndef CORE_H +#define CORE_H + +#include + +void __cdecl core_intcall(uint8_t, const com32sys_t *, com32sys_t *); +void __cdecl core_farcall(uint32_t, const com32sys_t *, com32sys_t *); +int __cdecl core_cfarcall(uint32_t, const void *, uint32_t); + +#endif /* CORE_H */ -- 2.7.4