kernel: debug: map the frame_buffer for the kernel only.

This commit is contained in:
Jérôme Duval 2018-01-11 19:57:37 +01:00
parent 3995592cdf
commit bbb5a50f9b

View File

@ -423,7 +423,8 @@ frame_buffer_console_init(kernel_args* args)
sConsole.area = map_physical_memory("vesa frame buffer",
args->frame_buffer.physical_buffer.start,
args->frame_buffer.physical_buffer.size, B_ANY_KERNEL_ADDRESS,
B_READ_AREA | B_WRITE_AREA | B_USER_CLONEABLE_AREA, &frameBuffer);
B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA | B_USER_CLONEABLE_AREA,
&frameBuffer);
if (sConsole.area < 0)
return sConsole.area;