8fcd6b8e61
* there is now a "Disable Hyper-Threading" safemode in the boot loader * the SMP & HT menu items are now added in smp.cpp - and are only added if the system supports one of them. * more cleanup to smp_apic.h * removed cpuid() from the boot loader's support.S - instead, it will now use the one from the kernel. * added a very weak HT detection: if the MP config only listed one CPU, and this CPU supports HT, we enable the other logic processor manually - as this currently doesn't work, it's disabled, though. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14536 a95241bf-73f2-0310-859d-f6bbb57e9c96
33 lines
846 B
C
33 lines
846 B
C
/*
|
|
* Copyright 2004-2005, Axel Dörfler, axeld@pinc-software.de. 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_SMP "disable_smp"
|
|
#define B_SAFEMODE_DISABLE_HYPER_THREADING "disable_hyperthreading"
|
|
|
|
|
|
#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 */
|