diff options
Diffstat (limited to 'kern')
-rw-r--r-- | kern/Kconfig | 1 | ||||
-rw-r--r-- | kern/macros.h | 11 | ||||
-rw-r--r-- | kern/panic.c | 1 | ||||
-rw-r--r-- | kern/percpu.h | 1 |
4 files changed, 4 insertions, 10 deletions
diff --git a/kern/Kconfig b/kern/Kconfig index 7c718d4c..dce9ed0a 100644 --- a/kern/Kconfig +++ b/kern/Kconfig @@ -3,6 +3,7 @@ menu "General setup" config SMP bool "Multiprocessor support" default y + depends on ARCH_SMP ---help--- Enable support for machines with multiple processors. diff --git a/kern/macros.h b/kern/macros.h index 23ad4d22..7435b79c 100644 --- a/kern/macros.h +++ b/kern/macros.h @@ -43,16 +43,7 @@ #define DECL_CONST(x, s) x #else /* __ASSEMBLER__ */ #define __DECL_CONST(x, s) x##s -void cga_putc(char c); - -static inline void -moo_print(const char *s) -{ - while (*s != '\0') { - cga_putc(*s); - s++; - } -} + #define DECL_CONST(x, s) __DECL_CONST(x, s) #endif /* __ASSEMBLER__ */ diff --git a/kern/panic.c b/kern/panic.c index c610e3fa..6c94f87a 100644 --- a/kern/panic.c +++ b/kern/panic.c @@ -29,6 +29,7 @@ static unsigned int panic_done; void panic(const char *format, ...) { +cpu_halt(); va_list list; unsigned long already_done; diff --git a/kern/percpu.h b/kern/percpu.h index 87d14703..1620f96f 100644 --- a/kern/percpu.h +++ b/kern/percpu.h @@ -37,6 +37,7 @@ * percpu variables from the local processor : * - cpu_local_ptr() * - cpu_local_var() + * TODO Document cpu_local_assign() and cpu_local_read(). * * These accessors may generate optimized code. * |