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.

39 lines
1.4 KiB
C

/* See the end of this file for copyright and license terms. */
#pragma once
#ifndef _ARCH_VMPARAM_H_
#error "This file is not meant to be included directly, use <arch/vmparam.h>"
#endif
/** @brief Userland memory region */
#define USER_OFFSET 0x0000000000000000 /* +0 TB */
#define USER_LENGTH 0x0000800000000000 /* 128 TB */
/** @brief Recursive Page Map Level 4 map */
#define X86_PMAP_OFFSET 0xffff800000000000 /* -128 TB */
#define X86_PMAP_LENGTH 0x0000004020101000 /* ~ 256.5 GB */
/** @brief Direct (contiguous) mapping of physical memory */
#define DMAP_OFFSET 0xfffff80000000000 /* -8 TB */
#define DMAP_LENGTH 0x0000040000000000 /* 4 TB */
/** @brief Kernel region (image, heap, etc) */
#define KERN_OFFSET 0xfffffe0000000000 /* -2 TB */
#define KERN_LENGTH 0x0000020000000000 /* 2 TB */
/** @brief Where the kernel image is actually mapped to */
#define KERNBASE 0xffffffff80000000 /* -2 GB */
/*
* 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.
*/