Adding start of x86_64 port
[tpg/acess2.git] / Kernel / arch / x86_64 / include / mm_virt.h
1 /*
2  * Acess2 x86_64 Architecture Code
3  *
4  * This file is published under the terms of the Acess Licence.
5  * See the file COPYING for more details
6  *
7  * vmem.h - Virtual Memory Functions & Definitions
8  */
9 #ifndef _VMEM_H_
10 #define _VMEM_H_
11
12 // === Memory Location Definitions ===
13 /*
14  * Userland - Lower Half
15  * Kernel land - Upper Half
16  * 
17  * 0xFFFF8000 00000000 - 0xFFFFFFFF FFFFFFFF    2**47   Kernel Range
18  *       8000 00000000 -       8000 7FFFFFFF    2 GiB   Identity Map
19  *       8000 80000000 -       8001 00000000    2 GiB   Kernel Heap
20  *       9000 00000000 0       9800 00000000    cbf     Module Space
21  */
22
23 #define KERNEL_BASE     0xFFF8000##00000000
24 #define MM_KHEAP_BASE   (KERNEL_BASE|0x80000000)
25 #define MM_KHEAP_MAX    (KERNEL_BASE|0x1##00000000)
26
27 #endif

UCC git Repository :: git.ucc.asn.au