You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
CMake
40 lines
1.4 KiB
CMake
# See the end of this file for copyright and license terms.
|
|
|
|
option(DEBUG "Enable debugging" ON)
|
|
|
|
set(ARCH "x86" CACHE STRING "Target architecture")
|
|
set_property(CACHE ARCH PROPERTY STRINGS
|
|
"x86"
|
|
)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/config-${ARCH}.cmake")
|
|
|
|
set(CFG_KERN_ORIGIN "0x00100000" CACHE STRING "Physical address where the kernel is loaded (don't touch this)")
|
|
|
|
option(CFG_POISON_PAGES "Poison pages after allocate and free" ON)
|
|
|
|
option(CFG_POISON_HEAP "Poison heap memory after kmalloc() and kfree()" ON)
|
|
|
|
option(CFG_DEBUG_IRQ "Debug IRQs" ${DEBUG})
|
|
|
|
option(CFG_DEBUG_CLIST "Sanitize clist operations" ${DEBUG})
|
|
|
|
option(CFG_DEBUG_PAGE_ALLOCS "Debug page frame allocations" OFF)
|
|
|
|
option(CFG_DEBUG_PAGE_ALLOCS_NOISY "Debug page frame allocations in full detail (VERY noisy)" OFF)
|
|
|
|
option(CFG_DEBUG_SLAB_ALLOCS "Debug slab allocations" OFF)
|
|
|
|
option(CFG_DEBUG_SLAB_ALLOCS_NOISY "Debug slab allocations in full detail (VERY noisy)" OFF)
|
|
|
|
# This file is part of GayBSD.
|
|
# Copyright (c) 2021 fef <owo@fef.moe>.
|
|
#
|
|
# GayBSD is nonviolent software: you may only use, redistribute, and/or
|
|
# modify it under the terms of the Cooperative Nonviolent Public License
|
|
# (CNPL) as found in the LICENSE file in the source code root directory
|
|
# or at <https://git.pixie.town/thufie/npl-builder>; either version 7
|
|
# of the license, or (at your option) any later version.
|
|
#
|
|
# GayBSD comes with ABSOLUTELY NO WARRANTY, to the extent
|
|
# permitted by applicable law. See the CNPL for details.
|