mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:52:44 +00:00 
			
		
		
		
	 a43ad0e706
			
		
	
	
		a43ad0e706
		
	
	
	
	
		
			
			Most .S files don't indent directives, so don't indent them here either. Also, one file had tabs instead of spaces, `:retab` that file.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			482 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			482 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Gunnar Beutner <gbeutner@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| .align 4
 | |
| .globl _invoke_entry
 | |
| .hidden _invoke_entry
 | |
| .type _invoke_entry,@function
 | |
| _invoke_entry: # (argc, argv, envp, entry)
 | |
|     // The System V ABI for x86 and x86_64 prescribes that the stack pointer is 16-byte aligned
 | |
|     andq $~15, %rsp
 | |
| 
 | |
|     // FIXME: The way we're setting up the stack and passing arguments to the entry point isn't ABI-compliant
 | |
|     jmp *%rcx
 |