Get the ARM port building again.
[newos.git] / include / newos / sysconfig.h
blob0dac0b70f802c175abd5bfd5e7d894dfd845da8a
1 /*
2 ** Copyright 2003, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
5 #ifndef _NEWOS_SYSCONFIG_H
6 #define _NEWOS_SYSCONFIG_H
8 /* system configuration, edit these to configure the build */
10 #if _KERNEL
12 /* set the debug level of the kernel */
13 /* debug level 0 prints no messages,
14 * >= 1 turns on a lot of debug spew and extra internal consistency checks */
15 #define DEBUG 10
17 /* set the ASSERT level of the kernel:
18 * 0 = no asserts
19 * 1 = critical asserts only
20 * 2 = general assert level
22 #define _ASSERT_LEVEL 2
24 /* sets if the kernel boots with serial spew on or not */
25 #define _DEFAULT_SERIAL_DBG_ON 1
27 /* set the com port of the serial debugger */
28 /* NOTE: a setting of 0xe9 enables the Bochs E9 hack */
29 #define _SERIAL_DBG_PORT 1 // com1
31 /* set the size of the bootup kprintf buffer */
32 #define _BOOT_KPRINTF_BUF_SIZE 4096
34 /* compile in support for SMP or not */
35 #define _WITH_SMP 1
37 /* maximum number of supported cpus */
38 #define _MAX_CPUS 4
40 #if !_WITH_SMP
41 #undef _MAX_CPUS
42 #define _MAX_CPUS 1
43 #endif
45 #if ARCH_sh4
46 /* sh-4 will not support smp, ever */
47 #undef _WITH_SMP
48 #define _WITH_SMP 0
49 #undef _MAX_CPUS
50 #define _MAX_CPUS 1
51 #endif
53 #if ARCH_ppc
54 /* current PPC code does not support SMP */
55 #undef _WITH_SMP
56 #define _WITH_SMP 0
57 #undef _MAX_CPUS
58 #define _MAX_CPUS 1
59 #endif
61 #if ARCH_arm
62 /* current ARM code does not support SMP */
63 #undef _WITH_SMP
64 #define _WITH_SMP 0
65 #undef _MAX_CPUS
66 #define _MAX_CPUS 1
67 #endif
69 #else
71 #endif
73 #endif