Changeset 40043e8 in mainline
- Timestamp:
- 2019-07-18T08:25:42Z (5 years ago)
- Children:
- 0116f21
- Parents:
- 2cc569a3
- Location:
- kernel
- Files:
-
- 1 deleted
- 9 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r2cc569a3 r40043e8 179 179 generic/src/interrupt/interrupt.c \ 180 180 generic/src/log/log.c \ 181 generic/src/main/kinit.c \ 181 182 generic/src/main/main.c \ 182 generic/src/main/ kinit.c \183 generic/src/main/shutdown.c \ 183 184 generic/src/main/uinit.c \ 184 185 generic/src/main/version.c \ 185 generic/src/main/shutdown.c \186 186 generic/src/proc/current.c \ 187 187 generic/src/proc/program.c \ … … 203 203 generic/src/mm/backend_user.c \ 204 204 generic/src/mm/slab.c \ 205 generic/src/lib/halt.c \206 205 generic/src/lib/mem.c \ 207 206 generic/src/lib/memfnc.c \ -
kernel/arch/mips32/src/debugger.c
r2cc569a3 r40043e8 42 42 #include <arch.h> 43 43 #include <arch/cp0.h> 44 #include <halt.h>45 44 #include <symtab.h> 46 45 -
kernel/arch/sparc64/src/smp/sun4v/smp.c
r2cc569a3 r40043e8 43 43 #include <config.h> 44 44 #include <macros.h> 45 #include <halt.h>46 45 #include <stdbool.h> 47 46 #include <stddef.h> -
kernel/generic/include/arch.h
r2cc569a3 r40043e8 38 38 #include <arch/asm.h> /* get_stack_base() */ 39 39 #include <config.h> 40 #include <shutdown.h> 40 41 41 42 /* … … 96 97 extern void calibrate_delay_loop(void); 97 98 98 extern void reboot(void);99 extern void arch_reboot(void);100 99 extern void *arch_construct_function(fncptr_t *, void *, void *); 101 100 -
kernel/generic/include/shutdown.h
r2cc569a3 r40043e8 33 33 */ 34 34 35 #ifndef KERN_ HALT_H_36 #define KERN_ HALT_H_35 #ifndef KERN_SHUTDOWN_H_ 36 #define KERN_SHUTDOWN_H_ 37 37 38 38 #include <atomic.h> … … 41 41 42 42 extern void halt(void) __attribute__((noreturn)); 43 extern void reboot(void); 44 extern void arch_reboot(void); 43 45 44 46 #endif -
kernel/generic/src/console/chardev.c
r2cc569a3 r40043e8 39 39 #include <synch/spinlock.h> 40 40 #include <stdio.h> 41 #include < halt.h>41 #include <shutdown.h> 42 42 #include <cpu.h> 43 43 -
kernel/generic/src/console/cmd.c
r2cc569a3 r40043e8 52 52 #include <arch.h> 53 53 #include <config.h> 54 #include <halt.h>55 54 #include <str.h> 56 55 #include <macros.h> -
kernel/generic/src/debug/panic.c
r2cc569a3 r40043e8 36 36 #include <stdio.h> 37 37 #include <stacktrace.h> 38 #include < halt.h>38 #include <shutdown.h> 39 39 #include <typedefs.h> 40 40 #include <mm/as.h> -
kernel/generic/src/main/shutdown.c
r2cc569a3 r40043e8 1 1 /* 2 2 * Copyright (c) 2007 Martin Decky 3 * Copyright (c) 2001-2004 Jakub Jermar 3 4 * All rights reserved. 4 5 * … … 36 37 */ 37 38 39 #include <shutdown.h> 40 #include <log.h> 41 #include <cpu.h> 42 #include <arch/asm.h> 38 43 #include <arch.h> 44 #include <console/kconsole.h> 39 45 #include <proc/task.h> 40 #include <halt.h> 41 #include <log.h> 46 47 /** Halt flag */ 48 atomic_t haltstate = 0; 49 50 /** Halt wrapper 51 * 52 * Set halt flag and halt the CPU. 53 * 54 */ 55 void halt(void) 56 { 57 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE)) 58 bool rundebugger = false; 59 60 if (!atomic_load(&haltstate)) { 61 atomic_store(&haltstate, 1); 62 rundebugger = true; 63 } 64 #else 65 atomic_store(&haltstate, 1); 66 #endif 67 68 interrupts_disable(); 69 70 #if (defined(CONFIG_DEBUG)) && (defined(CONFIG_KCONSOLE)) 71 if ((rundebugger) && (kconsole_check_poll())) 72 kconsole("panic", "\nLast resort kernel console ready.\n", false); 73 #endif 74 75 if (CPU) 76 log(LF_OTHER, LVL_NOTE, "cpu%u: halted", CPU->id); 77 else 78 log(LF_OTHER, LVL_NOTE, "cpu: halted"); 79 80 cpu_halt(); 81 } 42 82 43 83 void reboot(void) -
kernel/generic/src/proc/scheduler.c
r2cc569a3 r40043e8 57 57 #include <context.h> 58 58 #include <fpu_context.h> 59 #include < halt.h>59 #include <shutdown.h> 60 60 #include <arch.h> 61 61 #include <adt/list.h>
Note:
See TracChangeset
for help on using the changeset viewer.