2005-07-14 17:12:12 +02:00
|
|
|
#ifndef KERNEL_H
|
|
|
|
#define KERNEL_H
|
|
|
|
|
2009-11-16 22:41:44 +01:00
|
|
|
/* boot verbose */
|
|
|
|
#define CONFIG_BOOT_VERBOSE
|
2010-09-15 16:09:52 +02:00
|
|
|
|
|
|
|
#ifndef CONFIG_MAX_CPUS
|
2010-01-16 21:53:55 +01:00
|
|
|
#define CONFIG_MAX_CPUS 1
|
2010-09-15 16:09:52 +02:00
|
|
|
#endif
|
2009-11-16 22:41:44 +01:00
|
|
|
|
2010-05-19 12:00:02 +02:00
|
|
|
/* OXPCIe952 PCIe with 2 UARTs in-kernel support */
|
|
|
|
#define CONFIG_OXPCIE 0
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
/* This is the master header for the kernel. It includes some other files
|
|
|
|
* and defines the principal constants.
|
|
|
|
*/
|
|
|
|
#define _POSIX_SOURCE 1 /* tell headers to include POSIX stuff */
|
|
|
|
#define _MINIX 1 /* tell headers to include MINIX stuff */
|
|
|
|
#define _SYSTEM 1 /* tell headers that this is the kernel */
|
|
|
|
|
2010-01-16 21:53:55 +01:00
|
|
|
/*
|
|
|
|
* we need the defines above in assembly files to configure the kernel
|
|
|
|
* correctly. However we don't need the rest
|
|
|
|
*/
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
/* The following are so basic, all the *.c files get them automatically. */
|
|
|
|
#include <minix/config.h> /* global configuration, MUST be first */
|
|
|
|
#include <sys/types.h> /* general system types */
|
|
|
|
#include <minix/const.h> /* MINIX specific constants */
|
|
|
|
#include <minix/type.h> /* MINIX specific types, e.g. message */
|
|
|
|
#include <minix/ipc.h> /* MINIX run-time system */
|
2009-12-02 12:52:26 +01:00
|
|
|
#include <minix/sysutil.h> /* MINIX utility library functions */
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <timers.h> /* watchdog timer management */
|
|
|
|
#include <errno.h> /* return codes and error numbers */
|
2010-08-21 15:10:41 +02:00
|
|
|
#include <sys/param.h>
|
2012-07-16 13:17:11 +02:00
|
|
|
#include <minix/param.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2005-07-14 17:12:12 +02:00
|
|
|
/* Important kernel header files. */
|
2012-11-15 12:06:41 +01:00
|
|
|
#include "kernel/config.h" /* configuration, MUST be first */
|
|
|
|
#include "kernel/const.h" /* constants, MUST be second */
|
|
|
|
#include "kernel/type.h" /* type definitions, MUST be third */
|
|
|
|
#include "kernel/proto.h" /* function prototypes */
|
|
|
|
#include "kernel/glo.h" /* global variables */
|
|
|
|
#include "kernel/ipc.h" /* IPC constants */
|
|
|
|
#include "kernel/profile.h" /* system profiling */
|
|
|
|
#include "kernel/proc.h" /* process table */
|
|
|
|
#include "kernel/cpulocals.h" /* CPU-local variables */
|
|
|
|
#include "kernel/debug.h" /* debugging, MUST be last kernel header */
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-09-15 16:09:52 +02:00
|
|
|
#ifndef CONFIG_SMP
|
|
|
|
/* We only support 1 cpu now */
|
|
|
|
#define CONFIG_MAX_CPUS 1
|
|
|
|
#define cpuid 0
|
2010-09-15 16:10:12 +02:00
|
|
|
/* this is always true on an uniprocessor */
|
|
|
|
#define cpu_is_bsp(x) 1
|
2010-09-15 16:09:52 +02:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2012-11-15 12:06:41 +01:00
|
|
|
#include "kernel/smp.h"
|
2010-09-15 16:09:52 +02:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-01-16 21:53:55 +01:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
2005-07-14 17:12:12 +02:00
|
|
|
#endif /* KERNEL_H */
|