mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:52:45 +00:00 
			
		
		
		
	 6348b63476
			
		
	
	
		6348b63476
		
	
	
	
	
		
			
			This variant of dbgputstr does not lock the global log lock, as it is called before the current or any other processor was initialized, meaning that: A) The $gs base was not setup yet, so we cannot enter into critical sections, and as a result we cannot use SpinLocks B) No other processors may try to print at the same time anyway
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			577 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			577 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <AK/StringView.h>
 | |
| #include <AK/Types.h>
 | |
| 
 | |
| extern "C" {
 | |
| void dbgputch(char);
 | |
| void dbgputstr(const char*, size_t);
 | |
| void kernelputstr(const char*, size_t);
 | |
| void kernelcriticalputstr(const char*, size_t);
 | |
| void kernelearlyputstr(const char*, size_t);
 | |
| int snprintf(char* buf, size_t, const char* fmt, ...) __attribute__((format(printf, 3, 4)));
 | |
| void set_serial_debug(bool on_or_off);
 | |
| int get_serial_debug();
 | |
| }
 | |
| 
 | |
| void dbgputstr(StringView view);
 |