MSVC - KernelStart and KernelEnd Location
Posted: Fri Apr 08, 2022 6:33 am
Hi,
Im Writting an Operating System and got to the Point where i have to setup my Memory (Paging etc.).
Memory and Paging are setted up so far but i have the Problem to tell my MemoryManager where the Kernel Starts and Ends. In GCC i can simply say
and using the variables in cpp but how can i do that in msvc?
Im Writting an Operating System and got to the Point where i have to setup my Memory (Paging etc.).
Memory and Paging are setted up so far but i have the Problem to tell my MemoryManager where the Kernel Starts and Ends. In GCC i can simply say
Code: Select all
_KernelStart = .; <-----
.text : ALIGN(0x1000)
.data : ALIGN(0x1000)
.rodata : ALIGN(0x1000)
.bss : ALIGN(0x1000)
_KernelEnd = .; <-----