Fixed libbe_test build of app server:
* Added <safemode.h> headers. * Added a failing _kern_get_safemode_option() to libhaikucompat.a. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21340 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2004-2007, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
#ifndef _KERNEL_SAFEMODE_H
|
||||||
|
#define _KERNEL_SAFEMODE_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <driver_settings.h>
|
||||||
|
|
||||||
|
|
||||||
|
// these are BeOS compatible additions to the safemode
|
||||||
|
// constants in the driver_settings.h header
|
||||||
|
|
||||||
|
#define B_SAFEMODE_DISABLE_USER_ADD_ONS "disableuseraddons"
|
||||||
|
#define B_SAFEMODE_DISABLE_IDE_DMA "disableidedma"
|
||||||
|
#define B_SAFEMODE_DISABLE_ACPI "disable_acpi"
|
||||||
|
#define B_SAFEMODE_DISABLE_SMP "disable_smp"
|
||||||
|
#define B_SAFEMODE_DISABLE_HYPER_THREADING "disable_hyperthreading"
|
||||||
|
#define B_SAFEMODE_FAIL_SAFE_VIDEO_MODE "fail_safe_video_mode"
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
status_t get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize);
|
||||||
|
status_t _user_get_safemode_option(const char *parameter, char *buffer, size_t *_bufferSize);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* _KERNEL_SAFEMODE_H */
|
||||||
@@ -434,3 +434,11 @@ _kern_cancel_disk_device_job(disk_job_id id, bool reverse)
|
|||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// #pragma mark - other syscalls
|
||||||
|
|
||||||
|
status_t
|
||||||
|
_kern_get_safemode_option(const char *parameter, char *buffer,
|
||||||
|
size_t *_bufferSize)
|
||||||
|
{
|
||||||
|
return B_ERROR;
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,7 +6,12 @@ SetSubDirSupportedPlatforms libbe_test ;
|
|||||||
if $(TARGET_PLATFORM) = libbe_test {
|
if $(TARGET_PLATFORM) = libbe_test {
|
||||||
|
|
||||||
UseLibraryHeaders agg png zlib ;
|
UseLibraryHeaders agg png zlib ;
|
||||||
UsePrivateHeaders app graphics input interface kernel shared storage ;
|
UsePrivateHeaders app graphics input interface shared storage ;
|
||||||
|
|
||||||
|
# headers/build/private/kernel is needed for safemode.h and syscalls.h.
|
||||||
|
# headers/private/kernel for the util/* stuff.
|
||||||
|
UseHeaders [ FDirName $(HAIKU_TOP) headers build private kernel ] : true ;
|
||||||
|
UsePrivateHeaders kernel ;
|
||||||
|
|
||||||
local appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
|
local appServerDir = [ FDirName $(HAIKU_TOP) src servers app ] ;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user