Implemented on screen debug output during boot - to be enabled in the boot loader

safemode menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16081 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-01-25 16:12:10 +00:00
parent ab88c5f939
commit 924479179b
6 changed files with 44 additions and 12 deletions
@@ -1,8 +1,9 @@
/*
* Copyright 2005, Axel Dörfler, [email protected]. All rights reserved.
* Copyright 2005-2006, Axel Dörfler, [email protected]. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <KernelExport.h>
#include <kernel.h>
#include <lock.h>
@@ -448,6 +449,8 @@ status_t
_user_frame_buffer_update(addr_t baseAddress, int32 width, int32 height,
int32 depth, int32 bytesPerRow)
{
debug_stop_screen_debug_output();
if (geteuid() != 0)
return B_NOT_ALLOWED;
if (IS_USER_ADDRESS(baseAddress) && baseAddress != NULL)