-
- Downloads
debug: introduce debug_ll() and use it in abort()
the debug() console function is taking a lock before it access the console driver, it does that by acquiring a mutex which may sleep. since we want to be able to debug (and abort) in contexts where it's not possible sleep, such as in page_fault, a lockless debug print method is introduced. previousely to this patch, any abort on page_fault would cause an "endless" recursive abort() loop which hanged the system in a peculiar state.
Showing
- core/debug.cc 6 additions, 0 deletionscore/debug.cc
- drivers/console.cc 5 additions, 0 deletionsdrivers/console.cc
- drivers/console.hh 1 addition, 0 deletionsdrivers/console.hh
- drivers/debug-console.cc 7 additions, 0 deletionsdrivers/debug-console.cc
- drivers/debug-console.hh 2 additions, 0 deletionsdrivers/debug-console.hh
- include/osv/debug.h 4 additions, 0 deletionsinclude/osv/debug.h
- runtime.cc 1 addition, 1 deletionruntime.cc
Please register or sign in to comment