kernel/debug/frame_buffer: Lock should always be initalized
* Without this, kernel will crash on boot when a framebuffer isn't provided by bootloader. (like on the riscv64 today) Change-Id: I5ec64db30972c7c3b19e4cdb31f0fe72b5982c0f Reviewed-on: https://review.haiku-os.org/c/haiku/+/4494 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
parent
3ea6c00608
commit
ad3f57ef5a
@ -444,11 +444,11 @@ frame_buffer_update(addr_t baseAddress, int32 width, int32 height, int32 depth,
|
||||
status_t
|
||||
frame_buffer_console_init(kernel_args* args)
|
||||
{
|
||||
mutex_init(&sConsole.lock, "console_lock");
|
||||
|
||||
if (!args->frame_buffer.enabled)
|
||||
return B_OK;
|
||||
|
||||
mutex_init(&sConsole.lock, "console_lock");
|
||||
|
||||
void* frameBuffer;
|
||||
sConsole.area = map_physical_memory("vesa frame buffer",
|
||||
args->frame_buffer.physical_buffer.start,
|
||||
|
Loading…
x
Reference in New Issue
Block a user