x86: Fix x86 Cold Boot
Commit 077e1958ca broke the ability of the
x86 port to boot from a cold-reset by removing the initial IDT. Re-
instate the initial IDT to allow cold-booting of x86 boards
			
			
This commit is contained in:
		
							parent
							
								
									a806ee6fae
								
							
						
					
					
						commit
						797960fda1
					
				| 
						 | 
					@ -45,6 +45,7 @@ board_init16_ret:
 | 
				
			||||||
	wbinvd
 | 
						wbinvd
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* load the temporary Global Descriptor Table */
 | 
						/* load the temporary Global Descriptor Table */
 | 
				
			||||||
 | 
					o32 cs	lidt	idt_ptr
 | 
				
			||||||
o32 cs	lgdt	gdt_ptr
 | 
					o32 cs	lgdt	gdt_ptr
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Now, we enter protected mode */
 | 
						/* Now, we enter protected mode */
 | 
				
			||||||
| 
						 | 
					@ -68,6 +69,10 @@ code32start:
 | 
				
			||||||
	.long	_start		/* offset */
 | 
						.long	_start		/* offset */
 | 
				
			||||||
	.word	0x10		/* segment */
 | 
						.word	0x10		/* segment */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					idt_ptr:
 | 
				
			||||||
 | 
						.word	0		/* limit */
 | 
				
			||||||
 | 
						.long	0		/* base */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * The following Global Descriptor Table is just enough to get us into
 | 
					 * The following Global Descriptor Table is just enough to get us into
 | 
				
			||||||
 * 'Flat Protected Mode' - It will be discarded as soon as the final
 | 
					 * 'Flat Protected Mode' - It will be discarded as soon as the final
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue