Rev 680 | Rev 1196 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 680 | Rev 694 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | #include <arch/boot/memmap.h> |
29 | #include <arch/boot/memmap.h> |
| 30 | #include <arch/mm/memory_init.h> |
30 | #include <arch/mm/memory_init.h> |
| 31 | #include <arch/mm/page.h> |
31 | #include <arch/mm/page.h> |
| 32 | #include <print.h> |
32 | #include <print.h> |
| 33 | 33 | ||
| 34 | __u8 e820counter __attribute__ ((section ("BOOT_DATA"))) = 0xff; |
34 | __u8 e820counter = 0xff; |
| 35 | struct e820memmap_ e820table[MEMMAP_E820_MAX_RECORDS] __attribute__ ((section ("BOOT_DATA"))) ; |
35 | struct e820memmap_ e820table[MEMMAP_E820_MAX_RECORDS]; |
| - | 36 | __u32 e801memorysize; |
|
| 36 | 37 | ||
| 37 | size_t get_memory_size(void) |
38 | size_t get_memory_size(void) |
| 38 | { |
39 | { |
| 39 | return e801memorysize*1024; |
40 | return e801memorysize*1024; |
| 40 | } |
41 | } |