From a3be1de07dd515f8bbec503d260548f9cbef5484 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 21 Dec 2022 08:31:11 +0000 Subject: [PATCH] start_64 vga_clear now clears the screen AND resets the colour attribute bytes --- arch/x86_64/start_64.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86_64/start_64.S b/arch/x86_64/start_64.S index 0b80030..87adb24 100644 --- a/arch/x86_64/start_64.S +++ b/arch/x86_64/start_64.S @@ -15,10 +15,10 @@ kernel_identifier: vga_clear: mov $0xb8000, %rdi # VGA buffer - mov $500, %rcx # 4,000 bytes to clear = 500 quadwords - mov $0x0, %rax + mov $1000, %rcx # 4,000 bytes to clear = 2,000 words + mov $0x0700, %rax - rep stosq + rep stosw ret