Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/vmparam.h
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
#define VM_LEVEL_0_ORDER 9 | #define VM_LEVEL_0_ORDER 9 | ||||
#endif | #endif | ||||
#ifdef SMP | #ifdef SMP | ||||
#define PA_LOCK_COUNT 256 | #define PA_LOCK_COUNT 256 | ||||
#endif | #endif | ||||
/* | /* | ||||
* Kernel physical load address. | |||||
*/ | |||||
#ifndef KERNLOAD | |||||
#define KERNLOAD 0x200000 /* 2MB superpage size */ | |||||
markj: I would s/size/alignment/ in the comment. I believe the kernel expects to be loaded on a… | |||||
#endif | |||||
/* | |||||
* Virtual addresses of things. Derived from the page directory and | * Virtual addresses of things. Derived from the page directory and | ||||
* page table indexes from pmap.h for precision. | * page table indexes from pmap.h for precision. | ||||
* | * | ||||
* 0x0000000000000000 - 0x00007fffffffffff user map | * 0x0000000000000000 - 0x00007fffffffffff user map | ||||
* 0x0000800000000000 - 0xffff7fffffffffff does not exist (hole) | * 0x0000800000000000 - 0xffff7fffffffffff does not exist (hole) | ||||
* 0xffff800000000000 - 0xffff804020100fff recursive page table (512GB slot) | * 0xffff800000000000 - 0xffff804020100fff recursive page table (512GB slot) | ||||
* 0xffff804020100fff - 0xffff807fffffffff unused | * 0xffff804020100fff - 0xffff807fffffffff unused | ||||
* 0xffff808000000000 - 0xffff847fffffffff large map (can be tuned up) | * 0xffff808000000000 - 0xffff847fffffffff large map (can be tuned up) | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |
I would s/size/alignment/ in the comment. I believe the kernel expects to be loaded on a superpage boundary, it doesn't have to be 0x200000 specifically.