Major restructure
This commit is contained in:
parent
0562c2fe5a
commit
c52e19de83
25 changed files with 574 additions and 188 deletions
16
kern/libkern/memory.h
Normal file
16
kern/libkern/memory.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue