summaryrefslogtreecommitdiff
path: root/kern/startup.c
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-18 16:17:50 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-07-18 18:57:03 +0200
commitc9e087748246622d824b5ab83ad8cc79b31014d1 (patch)
treed27cbf6f6fdde246fe14e2b163bb949f4aba25e2 /kern/startup.c
parent1451a958347f5e683c63466cd7dfb893c1651f19 (diff)
kern/printf: do not serialize printf and co
A lot of code assumes that printf is re-entrant, e.g. the pagination code in the debugger, or any use of assert inside the console driver. * kern/printf.c: Drop the lock serializing calls to `_doprnt'. (printf_init): Remove function. * kern/printf.h (printf_init): Remove declaration. * kern/startup.c (setup_main): Remove call to `printf_init'.
Diffstat (limited to 'kern/startup.c')
-rw-r--r--kern/startup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kern/startup.c b/kern/startup.c
index f9f0c34..30cff5c 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -39,7 +39,6 @@
#include <kern/machine.h>
#include <kern/mach_factor.h>
#include <kern/mach_clock.h>
-#include <kern/printf.h>
#include <kern/processor.h>
#include <kern/rdxtree.h>
#include <kern/sched_prim.h>
@@ -109,7 +108,6 @@ void setup_main(void)
#endif /* MACH_KDB */
panic_init();
- printf_init();
sched_init();
vm_mem_bootstrap();