summaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/main.c b/kernel/main.c
index e69af30..8c120e9 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -45,9 +45,9 @@ puts(uint16_t *dst, const char *str)
}
static uint16_t *
-print_e820_table(uint16_t *dst, const struct e820_entry *const entries, const uint32_t count)
+print_e820_table(uint16_t *dst, const struct e820_entry *const entries, const uint16_t count)
{
- for (uint32_t i = 0; i < count; ++i, dst += VGA_WIDTH) {
+ for (uint16_t i = 0; i < count; ++i, dst += VGA_WIDTH) {
uint16_t *cursor;
cursor = print_hex(dst, entries[i].base);
@@ -74,8 +74,8 @@ kmain(void)
puts(vga_memory, "ProvidenceOS v0.1");
puts(vga_memory+VGA_WIDTH*2, "e820 memory map:");
- const uint32_t e820_size = *(uint32_t *)0xf000;
- const struct e820_entry *const e820_mmap = (struct e820_entry *)0xf004;
+ const uint16_t e820_size = *(uint16_t *)0xf000;
+ const struct e820_entry *const e820_mmap = (struct e820_entry *)0xf008;
print_e820_table(vga_memory+(VGA_WIDTH*3), e820_mmap, e820_size);