Turns out you can't pass a va_list to subroutines as per the C standard, even though it worked perfectly fine on ARM. Well then, the entire kprintf thing needs to be refactored anyway at some point in the future, so that more formatting options are supported.
		
			
				
	
	
		
			42 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
/* See the end of this file for copyright and license terms. */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#ifndef NULL
 | 
						|
#define NULL ((void *)0)
 | 
						|
#endif
 | 
						|
 | 
						|
typedef __INT8_TYPE__		s8;
 | 
						|
typedef __UINT8_TYPE__		u8;
 | 
						|
 | 
						|
typedef __INT16_TYPE__		s16;
 | 
						|
typedef __UINT16_TYPE__		u16;
 | 
						|
 | 
						|
typedef __INT32_TYPE__		s32;
 | 
						|
typedef __UINT32_TYPE__		u32;
 | 
						|
 | 
						|
typedef __INT64_TYPE__		s64;
 | 
						|
typedef __UINT64_TYPE__		u64;
 | 
						|
 | 
						|
typedef __SIZE_TYPE__		size_t;
 | 
						|
typedef __PTRDIFF_TYPE__	ptrdiff_t;
 | 
						|
typedef __INTPTR_TYPE__		intptr_t;
 | 
						|
 | 
						|
#define unsigned signed /* l00k @ d33z m4d h4xx0r sk1llz!!1 */
 | 
						|
typedef __SIZE_TYPE__		ssize_t;
 | 
						|
typedef __UINTPTR_TYPE__	uintptr_t;
 | 
						|
#undef unsigned
 | 
						|
 | 
						|
/*
 | 
						|
 * This file is part of GayBSD.
 | 
						|
 * Copyright (c) 2021 fef <owo@fef.moe>.
 | 
						|
 *
 | 
						|
 * GayBSD is nonviolent software: you may only use, redistribute, and/or
 | 
						|
 * modify it under the terms of the Cooperative Nonviolent Public License
 | 
						|
 * (CNPL) as found in the LICENSE file in the source code root directory
 | 
						|
 * or at <https://git.pixie.town/thufie/npl-builder>; either version 7
 | 
						|
 * of the license, or (at your option) any later version.
 | 
						|
 *
 | 
						|
 * GayBSD comes with ABSOLUTELY NO WARRANTY, to the extent
 | 
						|
 * permitted by applicable law.  See the CNPL for details.
 | 
						|
 */
 |