Getting memory information
This commit is contained in:
parent
5ec345e59f
commit
998fe3d26d
1 changed files with 8 additions and 0 deletions
|
@ -59,6 +59,14 @@ void kmain (unsigned int mbootmagick, multiboot_info_t* mbootinfo) {
|
|||
serial_write_string("\n BPos:");
|
||||
serial_write_string(itoa(mbootinfo->framebuffer_blue_field_position, 10));
|
||||
|
||||
serial_write_string("\nMemory: ");
|
||||
serial_write_string("\n lower: ");
|
||||
serial_write_string(uitoa(mbootinfo->mem_lower, 10));
|
||||
serial_write_string(" k");
|
||||
serial_write_string("\n upper: ");
|
||||
serial_write_string(uitoa(mbootinfo->mem_upper/1024, 10));
|
||||
serial_write_string(" M");
|
||||
|
||||
initfb(mbootinfo->framebuffer_addr, mbootinfo->framebuffer_width, mbootinfo->framebuffer_height, mbootinfo->framebuffer_bpp, mbootinfo->framebuffer_pitch, mbootinfo->framebuffer_red_field_position, mbootinfo->framebuffer_green_field_position, mbootinfo->framebuffer_blue_field_position);
|
||||
int x, y, i;
|
||||
unsigned char c = 0;
|
||||
|
|
Loading…
Reference in a new issue