mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	Kernel/aarch64: Branch to local halt function instead of C++ one
The kernel image grew so much that it wasn't possible to jump to the C++ symbol anymore, since this generated a 'relocation truncated' error when linking.
This commit is contained in:
		
							parent
							
								
									a47271ebdc
								
							
						
					
					
						commit
						acfeffc9ca
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -13,7 +13,7 @@ start: | |||
|   // Let only core 0 continue, put other cores to sleep. | ||||
|   mrs x13, MPIDR_EL1 | ||||
|   and x13, x13, 0xff | ||||
|   cbnz x13, _ZN6Kernel9Processor4haltEv | ||||
|   cbnz x13, halt | ||||
| 
 | ||||
|   // Let stack start before .text for now. | ||||
|   // 512 kiB (0x80000) of stack are probably not sufficient, especially once we give the other cores some stack too, | ||||
|  | @ -31,3 +31,8 @@ Lbss_clear_loop: | |||
|   bne Lbss_clear_loop | ||||
| 
 | ||||
|   b init | ||||
| 
 | ||||
| halt: | ||||
|   msr daifset, #2 | ||||
|   wfi | ||||
|   b halt | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timon Kruiper
						Timon Kruiper