neptune/kern/libkern/memory.h
2025-09-01 22:22:35 +02:00

16 lines
364 B
C

#ifndef MEMORY_KERNEL_H
#define MEMORY_KERNEL_H
#include <stdint.h>
/* These are hardcoded for now */
#define KERNBASE 0x80000000L
#define PHYSTOP (KERNBASE + 128 * 1024 * 1024)
/**
* Returns size in bytes of detected RAM In qemu, it requires a trap handler to
* handle the interrupt when accessing unavailable memory.
*/
size_t probe_memory(void);
#endif