Optimised start_64 vga_clear()

This commit is contained in:
2022-12-14 18:41:41 +00:00
parent a5c6240761
commit 48f00ba3b1

View File

@@ -12,11 +12,11 @@ kernel_identifier:
.section .boot.text, "ax", @progbits
vga_clear:
mov $0xb8000, %edi # VGA buffer
mov $0xFA0, %ecx # 4,000 bytes to clear
mov $0x0, %eax
mov $0xb8000, %rdi # VGA buffer
mov $500, %rcx # 4,000 bytes to clear = 500 quadwords
mov $0x0, %rax
rep stosb
rep stosq
ret