Adjusted the start_64 kernel identifier message
This commit is contained in:
@@ -6,15 +6,26 @@
|
||||
ERROR MESSAGE STRINGS
|
||||
*******/
|
||||
kernel_identifier:
|
||||
.asciz " Socks kernel version " BUILD_ID " "
|
||||
.asciz " Socks kernel version " BUILD_ID " "
|
||||
|
||||
|
||||
.section .boot.text, "ax", @progbits
|
||||
|
||||
vga_clear:
|
||||
mov $0xb8000, %edi # VGA buffer
|
||||
mov $0xFA0, %ecx # 4,000 bytes to clear
|
||||
mov $0x0, %eax
|
||||
|
||||
rep stosb
|
||||
|
||||
ret
|
||||
|
||||
# prints a block message showing the kernel name and version number
|
||||
# starting at cell 2x1 on the VGA display
|
||||
print_kernel_identifier:
|
||||
/* line 1: empty padding line */
|
||||
mov $kernel_identifier, %rsi
|
||||
mov $0xb8000, %rdi
|
||||
mov $0xb80a4, %rdi
|
||||
|
||||
1:
|
||||
movw $0x7000, (%rdi) # black text on white background.
|
||||
@@ -25,7 +36,7 @@ print_kernel_identifier:
|
||||
|
||||
/* line 2: kernel identiifer */
|
||||
mov $kernel_identifier, %rsi
|
||||
mov $0xb80A0, %rdi
|
||||
mov $0xb8144, %rdi
|
||||
|
||||
2:
|
||||
movsb
|
||||
@@ -37,7 +48,7 @@ print_kernel_identifier:
|
||||
|
||||
/* line 3: empty padding line */
|
||||
mov $kernel_identifier, %rsi
|
||||
mov $0xb8140, %rdi
|
||||
mov $0xb81e4, %rdi
|
||||
|
||||
1:
|
||||
movw $0x7000, (%rdi) # black text on white background.
|
||||
@@ -51,6 +62,7 @@ print_kernel_identifier:
|
||||
.global start_64
|
||||
.type start_64, @function
|
||||
start_64:
|
||||
call vga_clear
|
||||
call print_kernel_identifier
|
||||
|
||||
cli
|
||||
|
||||
Reference in New Issue
Block a user