2020-06-25 19:01:25 +02:00
|
|
|
#pragma once
|
2021-09-23 18:38:29 +02:00
|
|
|
|
2020-06-25 19:01:25 +02:00
|
|
|
#include <cstdint>
|
|
|
|
#include <wums/defines/module_defines.h>
|
|
|
|
|
2021-09-23 18:38:29 +02:00
|
|
|
#define MEMORY_REGION_START 0x00800000
|
2020-06-25 19:01:25 +02:00
|
|
|
#define MEMORY_REGION_SIZE 0x00800000
|
|
|
|
|
2022-01-23 22:11:33 +01:00
|
|
|
#define MEMORY_REGION_USABLE_HEAP_START (MEMORY_REGION_START + 0x00080000) // We don't want to override the relocator
|
|
|
|
#define MEMORY_REGION_USABLE_HEAP_END (MEMORY_REGION_USABLE_HEAP_START + 0x00080000) // heap size is 512 KiB for now
|
2021-02-19 10:05:02 +01:00
|
|
|
|
|
|
|
#define MEMORY_REGION_USABLE_START MEMORY_REGION_USABLE_HEAP_END
|
2022-01-23 22:11:33 +01:00
|
|
|
#define MEMORY_REGION_USABLE_END 0x00FFF000 // The last 0x1000 bytes are reserved kernel hook
|
2020-06-25 19:01:25 +02:00
|
|
|
|
|
|
|
#define gModuleData ((module_information_t *) (MEMORY_REGION_USABLE_START))
|