76681bd900
* Replace count_low/count_high with bigtime_t fields plus an int32. sizeof(spinlock) is now 32 bytes with the debug option enabled. * Adjust and clean up all spinlock code to use the new fields. * Fold DEBUG_SPINLOCK_LATENCIES into the new code. Remove the bootloader option and other flags for it (these were not compiled in by default.) The new code should be much easier to understand and also more powerful. However, the information transmitted to userland isn't as useful now; the KDL command output will have the interesting information. (Things could be reworked to transmit more interesting information to userland again if desired, but as this code clearly hadn't been compiled for many years, as it referred to global spinlocks that have been gone for a very long time.) Change-Id: I2cb34078bfdc7604f288a297b6cd1aa7ff9cc512 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6943 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
25 lines
954 B
C
25 lines
954 B
C
/*
|
|
* Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _SYSTEM_SAFEMODE_DEFS_H
|
|
#define _SYSTEM_SAFEMODE_DEFS_H
|
|
|
|
|
|
#define B_SAFEMODE_DISABLE_USER_ADD_ONS "disable_user_addons"
|
|
#define B_SAFEMODE_DISABLE_IDE_DMA "disable_ide_dma"
|
|
#define B_SAFEMODE_DISABLE_IOAPIC "disable_ioapic"
|
|
#define B_SAFEMODE_DISABLE_ACPI "disable_acpi"
|
|
#define B_SAFEMODE_DISABLE_APIC "disable_apic"
|
|
#define B_SAFEMODE_DISABLE_X2APIC "disable_x2apic"
|
|
#define B_SAFEMODE_DISABLE_SMEP_SMAP "disable_smep_smap"
|
|
#define B_SAFEMODE_DISABLE_APM "disable_apm"
|
|
#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"
|
|
#define B_SAFEMODE_4_GB_MEMORY_LIMIT "4gb_memory_limit"
|
|
#define B_SAFEMODE_256_TB_MEMORY_LIMIT "256tb_memory_limit"
|
|
|
|
|
|
#endif /* _SYSTEM_SAFEMODE_DEFS_H */
|