memory.h: sweep algorithm for checking regions
This commit is contained in:
parent
e762502c33
commit
21d55031d9
2 changed files with 18 additions and 26 deletions
|
|
@ -8,9 +8,8 @@
|
|||
#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.
|
||||
* Set and fetch routine for checking memory.
|
||||
*/
|
||||
size_t probe_memory(void);
|
||||
int memory_sweep(const uintptr_t start, const uintptr_t end);
|
||||
|
||||
#endif // MEMORY_KARNEL_H
|
||||
#endif // MEMORY_KERNEL_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue