module metal.e820

Code Map

module metal.e820;


struct Map
{
public:
	entries: Entry[128];
	num: size_t;
}

struct Entry
{
public:
	address: u64;
	size: u64;
	type: u64;
}

global map: Map;

fn fromMultiboot1(info: mb1.Info*) { }
fn fromMultiboot2(mmap: mb2.TagMmap*) { }
fn dumpMap() { }