00001 // EPOS-- Configuration Engine 00002 // 00003 // This work is licensed under the Creative Commons 00004 // Attribution-NonCommercial-NoDerivs License. To view a copy of this license, 00005 // visit http://creativecommons.org/licenses/by-nc-nd/2.0/ or send a letter to 00006 // Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. 00007 00008 00009 #ifndef __config_h 00010 #define __config_h 00011 00012 //============================================================================ 00013 // DEFINITIONS 00014 //============================================================================ 00015 #define __SYS_NS System 00016 #define __BEGIN_SYS namespace __SYS_NS { 00017 #define __END_SYS } 00018 #define __USING_SYS using namespace __SYS_NS; 00019 #define __SYS(X) ::__SYS_NS::X 00020 00021 #define ASM __asm__ 00022 #define ASMV __asm__ __volatile__ 00023 00024 //============================================================================ 00025 // CONFIGURATION 00026 //============================================================================ 00027 #ifndef MACH 00028 #define MACH pc 00029 #ifndef ARCH 00030 #define ARCH ia32 00031 #endif 00032 #endif 00033 00034 #define __HEADER_ARCH(X) <arch/ARCH/X.h> 00035 #define __HEADER_MACH(X) <mach/MACH/X.h> 00036 00037 //============================================================================ 00038 // THINGS EVERBODY NEEDS 00039 //============================================================================ 00040 //__BEGIN_SYS 00041 //inline void * operator new(unsigned int s, void * a) { return a; } 00042 //__END_SYS 00043 00044 #include <system/types.h> 00045 #include <traits.h> 00046 #include <system/info.h> 00047 #include <utility/ostream.h> 00048 #include <utility/debug.h> 00049 #include <cpu.h> 00050 00051 #endif 00052 00053