mirror of
https://gitlab.com/bztsrc/bootboot.git
synced 2023-02-13 20:54:32 -05:00
Added clear screen
This commit is contained in:
parent
e1023b8f74
commit
7914657ce5
2 changed files with 8 additions and 0 deletions
Binary file not shown.
|
@ -1194,6 +1194,14 @@ gzerr: panic("Unable to uncompress");
|
|||
}
|
||||
DBG(" * Memory Map @%lx %d bytes\n",(uintptr_t)&(bootboot->mmap), bootboot->size - 128);
|
||||
|
||||
/* clear the screen */
|
||||
for(np=sp=0;sp<bootboot->fb_height;sp++) {
|
||||
r=np;
|
||||
for(i=0;i<bootboot->fb_width;i+=2,r+=8)
|
||||
*((uint64_t*)(uintptr_t)(bootboot->fb_ptr + r))=0;
|
||||
np+=bootboot->fb_scanline;
|
||||
}
|
||||
|
||||
/* continue in Assembly, enable long mode and jump to kernel's entry point */
|
||||
bsp_init();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue