Optimised start_64 vga_clear()
This commit is contained in:
@@ -12,11 +12,11 @@ kernel_identifier:
|
|||||||
.section .boot.text, "ax", @progbits
|
.section .boot.text, "ax", @progbits
|
||||||
|
|
||||||
vga_clear:
|
vga_clear:
|
||||||
mov $0xb8000, %edi # VGA buffer
|
mov $0xb8000, %rdi # VGA buffer
|
||||||
mov $0xFA0, %ecx # 4,000 bytes to clear
|
mov $500, %rcx # 4,000 bytes to clear = 500 quadwords
|
||||||
mov $0x0, %eax
|
mov $0x0, %rax
|
||||||
|
|
||||||
rep stosb
|
rep stosq
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user