mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:02:45 +00:00 
			
		
		
		
	 ee4d7c18c8
			
		
	
	
		ee4d7c18c8
		
	
	
	
	
		
			
			The old bootloader was hilariously complicated, requiring a floppy disk with the kernel on it, and a hard drive with the file system. This patch removes the floppy disk from the equation and replaces it with a multiboot header. This means the kernel can now be booted with qemu-system-i386 -kernel kernel
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			280 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			280 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| ENTRY(start)
 | |
| 
 | |
| SECTIONS
 | |
| {
 | |
| 	. = 0x10000;
 | |
| 
 | |
| 	.text BLOCK(4K) : ALIGN(4K)
 | |
| 	{
 | |
|         Boot/boot.ao
 | |
| 		*(.multiboot)
 | |
| 		*(.text)
 | |
| 	}
 | |
| 
 | |
| 	.rodata BLOCK(4K) : ALIGN(4K)
 | |
| 	{
 | |
| 		*(.rodata)
 | |
| 	}
 | |
| 
 | |
| 	.data BLOCK(4K) : ALIGN(4K)
 | |
| 	{
 | |
| 		*(.data)
 | |
| 	}
 | |
| 
 | |
| 	.bss BLOCK(4K) : ALIGN(4K)
 | |
| 	{
 | |
| 		*(COMMON)
 | |
| 		*(.bss)
 | |
| 	}
 | |
| }
 |