Add a memstart symbol to the linkerscript

This replaces the old way of appending the memory bitmap to the end of the kernel, which started causing problems with expansion..

I hardcoded the value to 0x1440, which is the start of the first FREE block of memory given to SeaBIOS in QEMU. This should be changed in the future..
This commit is contained in:
Curle 2020-11-09 18:48:47 +00:00
parent bd8213356e
commit 75f44b0514
Signed by: TheCurle
GPG Key ID: 5942F13718443F79
2 changed files with 5 additions and 2 deletions

View File

@ -199,6 +199,8 @@ void* AlignPointer(const void* Pointer, size_t Alignment);
* C h r o m a M e m o r y M a n a g e m e n t
*************************************************************/
extern size_t memstart;
extern size_t end;
void ListMemoryMap();

View File

@ -1,6 +1,7 @@
mmio = 0xfffffffff8000000;
fb = 0xfffffffffc000000;
memstart = 0x14400;
mmio = 0xfffffffff8000000;
fb = 0xfffffffffc000000;
PHDRS
{