forked from Bananymous/banan-os
				
			Kernel: Add video mode request for bootloader
This commit is contained in:
		
							parent
							
								
									03e7812cae
								
							
						
					
					
						commit
						e1a15a4989
					
				| 
						 | 
					@ -1,7 +1,8 @@
 | 
				
			||||||
# Declare constants for the multiboot header
 | 
					# Declare constants for the multiboot header
 | 
				
			||||||
.set ALIGN,			1<<0						# align loaded modules on page boundaries
 | 
					.set ALIGN,			1<<0						# align loaded modules on page boundaries
 | 
				
			||||||
.set MEMINFO,		1<<1						# provide memory map
 | 
					.set MEMINFO,		1<<1						# provide memory map
 | 
				
			||||||
.set MB_FLAGS,		ALIGN | MEMINFO			# this is the Multiboot 'flag' field
 | 
					.set VIDEOINFO,		1<<2						# provide video info
 | 
				
			||||||
 | 
					.set MB_FLAGS,		ALIGN | MEMINFO | VIDEOINFO # this is the Multiboot 'flag' field
 | 
				
			||||||
.set MB_MAGIC,		0x1BADB002					# 'magic number' lets bootloader find the header
 | 
					.set MB_MAGIC,		0x1BADB002					# 'magic number' lets bootloader find the header
 | 
				
			||||||
.set MB_CHECKSUM,	-(MB_MAGIC + MB_FLAGS)		#checksum of above, to prove we are multiboot
 | 
					.set MB_CHECKSUM,	-(MB_MAGIC + MB_FLAGS)		#checksum of above, to prove we are multiboot
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,6 +12,15 @@
 | 
				
			||||||
	.long MB_MAGIC
 | 
						.long MB_MAGIC
 | 
				
			||||||
	.long MB_FLAGS
 | 
						.long MB_FLAGS
 | 
				
			||||||
	.long MB_CHECKSUM
 | 
						.long MB_CHECKSUM
 | 
				
			||||||
 | 
						.skip 4
 | 
				
			||||||
 | 
						.skip 4
 | 
				
			||||||
 | 
						.skip 4
 | 
				
			||||||
 | 
						.skip 4
 | 
				
			||||||
 | 
						.skip 4
 | 
				
			||||||
 | 
						.long 1
 | 
				
			||||||
 | 
						.long 80
 | 
				
			||||||
 | 
						.long 25
 | 
				
			||||||
 | 
						.long 0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 # Create stack
 | 
					 # Create stack
 | 
				
			||||||
.section .bss
 | 
					.section .bss
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue