7 unsigned int arch::get_memory_size() {
8 e820data
= (e820_record
*)0x10000;
12 for (int i
= 0; e820data
[i
].type
; i
++)
13 mem_size
+= (u32
)e820data
[i
].length
;
18 unsigned int arch::get_free_memory_size() {
19 e820data
= (e820_record
*)0x10000;
23 for (int i
= 0; e820data
[i
].type
; i
++)
24 if (e820data
[i
].type
== e820_free
)
25 mem_size
+= (u32
)e820data
[i
].length
;