mirror of
https://github.com/taigrr/gopher-os
synced 2025-01-18 04:43:13 -08:00
Request valid EGA console from bootloader
This commit is contained in:
parent
5db83cd3c6
commit
4b25afd2f5
@ -17,9 +17,15 @@ header_start:
|
|||||||
; 32-bit unsigned sum of zero.
|
; 32-bit unsigned sum of zero.
|
||||||
dd (1 << 32) - (MAGIC + ARCH + (header_end - header_start))
|
dd (1 << 32) - (MAGIC + ARCH + (header_end - header_start))
|
||||||
|
|
||||||
|
; Console flags tag
|
||||||
align 8 ; tags should be 64-bit aligned
|
align 8 ; tags should be 64-bit aligned
|
||||||
|
dw 4 ; type
|
||||||
|
dw 0 ; flags
|
||||||
|
dd 12 ; size
|
||||||
|
dd 0x3 ; kernel supports EGA console
|
||||||
|
|
||||||
; Define graphics mode tag
|
; Define graphics mode tag
|
||||||
|
;align 8 ; tags should be 64-bit aligned
|
||||||
;dw 5 ; type
|
;dw 5 ; type
|
||||||
;dw 0 ; flags
|
;dw 0 ; flags
|
||||||
;dd 20 ; size
|
;dd 20 ; size
|
||||||
@ -27,10 +33,9 @@ header_start:
|
|||||||
;dd 25 ; height (pixels or chars)
|
;dd 25 ; height (pixels or chars)
|
||||||
;dd 0 ; bpp (0 for text mode
|
;dd 0 ; bpp (0 for text mode
|
||||||
|
|
||||||
align 8 ; tags should be 64-bit aligned
|
|
||||||
|
|
||||||
; According to page 6 of the spec, the tag list is terminated by a tag with
|
; According to page 6 of the spec, the tag list is terminated by a tag with
|
||||||
; type 0 and size 8
|
; type 0 and size 8
|
||||||
|
align 8 ; tags should be 64-bit aligned
|
||||||
dd 0 ; type & flag = 0
|
dd 0 ; type & flag = 0
|
||||||
dd 8 ; size
|
dd 8 ; size
|
||||||
header_end:
|
header_end:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user