Changeset bfd7aac in mainline for kernel/generic
- Timestamp:
- 2010-02-17T19:19:08Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1e2e0c1e
- Parents:
- 01a9ef5 (diff), b8da2a3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- kernel/generic
- Files:
-
- 9 edited
-
include/console/console.h (modified) (1 diff)
-
include/errno.h (modified) (1 diff)
-
include/panic.h (modified) (4 diffs)
-
include/smp/ipi.h (modified) (2 diffs)
-
include/time/clock.h (modified) (1 diff)
-
src/console/console.c (modified) (1 diff)
-
src/ddi/ddi.c (modified) (2 diffs)
-
src/main/kinit.c (modified) (3 diffs)
-
src/smp/ipi.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/console/console.h
r01a9ef5 rbfd7aac 41 41 extern indev_t *stdin; 42 42 extern outdev_t *stdout; 43 extern bool silent;44 43 45 44 extern indev_t *stdin_wire(void); -
kernel/generic/include/errno.h
r01a9ef5 rbfd7aac 57 57 #define EADDRNOTAVAIL -12 /* Address not available. */ 58 58 #define ETIMEOUT -13 /* Timeout expired */ 59 //MH 60 #ifndef EINVAL 59 61 #define EINVAL -14 /* Invalid value */ 62 #endif 63 #ifndef EBUSY 60 64 #define EBUSY -15 /* Resource is busy */ 65 #endif 61 66 #define EOVERFLOW -16 /* The result does not fit its size. */ 62 67 #define EINTR -17 /* Operation was interrupted. */ -
kernel/generic/include/panic.h
r01a9ef5 rbfd7aac 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 36 36 #define KERN_PANIC_H_ 37 37 38 #include <typedefs.h> 38 39 #include <stacktrace.h> 39 40 #include <print.h> … … 42 43 # define panic(format, ...) \ 43 44 do { \ 45 silent = false; \ 44 46 printf("Kernel panic in %s() at %s:%u.\n", \ 45 47 __func__, __FILE__, __LINE__); \ … … 50 52 #else 51 53 # define panic(format, ...) \ 52 panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__); 54 do { \ 55 silent = false; \ 56 panic_printf("Kernel panic: " format "\n", ##__VA_ARGS__); \ 57 } while (0) 53 58 #endif 59 60 extern bool silent; 54 61 55 62 extern void panic_printf(char *fmt, ...) __attribute__((noreturn)); -
kernel/generic/include/smp/ipi.h
r01a9ef5 rbfd7aac 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 37 37 38 38 #ifdef CONFIG_SMP 39 extern void ipi_broadcast(int ipi); 40 extern void ipi_broadcast_arch(int ipi); 39 40 extern void ipi_broadcast(int); 41 extern void ipi_broadcast_arch(int); 42 41 43 #else 42 #define ipi_broadcast(x) ; 44 45 #define ipi_broadcast(ipi) 46 43 47 #endif /* CONFIG_SMP */ 44 48 -
kernel/generic/include/time/clock.h
r01a9ef5 rbfd7aac 38 38 #include <arch/types.h> 39 39 40 #define HZ 100 040 #define HZ 100 41 41 42 42 /** Uptime structure */ -
kernel/generic/src/console/console.c
r01a9ef5 rbfd7aac 45 45 #include <ipc/irq.h> 46 46 #include <arch.h> 47 #include <panic.h> 47 48 #include <print.h> 48 49 #include <putchar.h> -
kernel/generic/src/ddi/ddi.c
r01a9ef5 rbfd7aac 146 146 (btree_key_t) pf, &nodep); 147 147 148 if ((!parea) || (parea->frames < pages)) 148 if ((!parea) || (parea->frames < pages)) { 149 spinlock_unlock(&parea_lock); 149 150 goto err; 151 } 150 152 151 153 spinlock_unlock(&parea_lock); … … 153 155 } 154 156 157 spinlock_unlock(&zones.lock); 155 158 err: 156 spinlock_unlock(&zones.lock);157 159 interrupts_restore(ipl); 158 160 return ENOENT; -
kernel/generic/src/main/kinit.c
r01a9ef5 rbfd7aac 94 94 void kinit(void *arg) 95 95 { 96 97 96 #if defined(CONFIG_SMP) || defined(CONFIG_KCONSOLE) 98 97 thread_t *thread; … … 217 216 } 218 217 } 219 218 220 219 /* 221 220 * Run user tasks. … … 225 224 program_ready(&programs[i]); 226 225 } 227 226 228 227 #ifdef CONFIG_KCONSOLE 229 228 if (!stdin) { -
kernel/generic/src/smp/ipi.c
r01a9ef5 rbfd7aac 27 27 */ 28 28 29 /** @addtogroup generic 29 /** @addtogroup generic 30 30 * @{ 31 31 */ … … 33 33 /** 34 34 * @file 35 * @brief Generic IPI interface.35 * @brief Generic IPI interface. 36 36 */ 37 37 38 38 #ifdef CONFIG_SMP 39 39 40 40 #include <smp/ipi.h> 41 41 #include <config.h> 42 43 42 44 43 /** Broadcast IPI message … … 49 48 * 50 49 * @bug The decision whether to actually send the IPI must be based 51 * on a different criterion. The current version has52 * problems when some of the detected CPUs are marked53 * disabled in machine configuration.50 * on a different criterion. The current version has 51 * problems when some of the detected CPUs are marked 52 * disabled in machine configuration. 54 53 */ 55 54 void ipi_broadcast(int ipi) … … 60 59 * - if there is only one CPU but the kernel was compiled with CONFIG_SMP 61 60 */ 62 61 63 62 if ((config.cpu_active > 1) && (config.cpu_active == config.cpu_count)) 64 63 ipi_broadcast_arch(ipi);
Note:
See TracChangeset
for help on using the changeset viewer.
