mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:12:43 +00:00 
			
		
		
		
	 1682f0b760
			
		
	
	
		1682f0b760
		
	
	
	
	
		
			
			SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			727 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			727 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #include <Kernel/API/Syscall.h>
 | |
| #include <LibSystem/syscall.h>
 | |
| 
 | |
| extern "C" {
 | |
| 
 | |
| uintptr_t syscall0(uintptr_t function)
 | |
| {
 | |
|     return Syscall::invoke((Syscall::Function)function);
 | |
| }
 | |
| 
 | |
| uintptr_t syscall1(uintptr_t function, uintptr_t arg0)
 | |
| {
 | |
|     return Syscall::invoke((Syscall::Function)function, arg0);
 | |
| }
 | |
| 
 | |
| uintptr_t syscall2(uintptr_t function, uintptr_t arg0, uintptr_t arg1)
 | |
| {
 | |
|     return Syscall::invoke((Syscall::Function)function, arg0, arg1);
 | |
| }
 | |
| 
 | |
| uintptr_t syscall3(uintptr_t function, uintptr_t arg0, uintptr_t arg1, uintptr_t arg2)
 | |
| {
 | |
|     return Syscall::invoke((Syscall::Function)function, arg0, arg1, arg2);
 | |
| }
 | |
| }
 |