From c9e087748246622d824b5ab83ad8cc79b31014d1 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Sat, 18 Jul 2015 16:17:50 +0200 Subject: 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'. --- kern/startup.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'kern/startup.c') diff --git a/kern/startup.c b/kern/startup.c index f9f0c347..30cff5c0 100644 --- a/kern/startup.c +++ b/kern/startup.c @@ -39,7 +39,6 @@ #include #include #include -#include #include #include #include @@ -109,7 +108,6 @@ void setup_main(void) #endif /* MACH_KDB */ panic_init(); - printf_init(); sched_init(); vm_mem_bootstrap(); -- cgit v1.2.3