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.

65 lines
2.0 KiB
C

/* See the end of this file for copyright and license terms. */
/**
* @file include/gay/config.h
* @brief Kernel configuration header.
* This header file contains all architecture independent configuration options
* for GayBSD, as defined in `cmake/config.cmake`.
*/
#pragma once
#cmakedefine DEBUG
#define GAY_VERSION_MAJOR @gaybsd_VERSION_MAJOR@
#define GAY_VERSION_MINOR @gaybsd_VERSION_MINOR@
#define GAY_VERSION_PATCH @gaybsd_VERSION_PATCH@
#define GAY_VERSION ( \
(unsigned long)GAY_VERSION_MAJOR << 24 | \
(unsigned long)GAY_VERSION_MINOR << 16 | \
(unsigned long)GAY_VERSION_PATCH \
)
#define GAY_VERSION_STR \
"@gaybsd_VERSION_MAJOR@.@gaybsd_VERSION_MINOR@.@gaybsd_VERSION_PATCH@@gaybsd_VERSION_SUFFIX@"
/** @brief Physical address where the kernel is loaded */
#define CFG_KERN_ORIGIN @CFG_KERN_ORIGIN@
/** @brief Poison dynamic pages when allocating and freeing them */
#cmakedefine01 CFG_POISON_PAGES
/** @brief Poison heap areas after `kmalloc()` and `kfree()` */
#cmakedefine01 CFG_POISON_HEAP
/** @brief Debug IRQs */
#cmakedefine01 CFG_DEBUG_IRQ
/** @brief Sanitize clist operations */
#cmakedefine01 CFG_DEBUG_CLIST
/** @brief Debug page frame allocations */
#cmakedefine01 CFG_DEBUG_PAGE_ALLOCS
/** @brief Spit out the full details of page allocations */
#cmakedefine01 CFG_DEBUG_PAGE_ALLOCS_NOISY
/** @brief Debug slab allocations */
#cmakedefine01 CFG_DEBUG_SLAB_ALLOCS
/** @brief Spit out the full details of slab allocations */
#cmakedefine01 CFG_DEBUG_SLAB_ALLOCS_NOISY
/*
* 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.
*/