Make the ELF entry point a physical address
This way, the bootloader doesn't have to translate the entry point. This also makes xv6 multiboot-compliant and follows the convention used by Linux.
This commit is contained in:
		
							parent
							
								
									68b5872716
								
							
						
					
					
						commit
						2fc6c35b2f
					
				
					 2 changed files with 8 additions and 7 deletions
				
			
		|  | @ -43,7 +43,7 @@ bootmain(void) | |||
| 
 | ||||
|   // Call the entry point from the ELF header.
 | ||||
|   // Does not return!
 | ||||
|   entry = (void(*)(void))(elf->entry - KERNBASE); | ||||
|   entry = (void(*)(void))(elf->entry); | ||||
|   entry(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Austin Clements
						Austin Clements