mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
5576151e68
Only use the Bochs debug output if we compile a x86 build since bochs debug output relies on x86 specific instructions. We also remove the CONSOLE_OUT_TO_BOCHS_DEBUG_PORT flag as we always compile bochs debug output for x86 builds and we always want to include the bochs debug output capability as it is very handy and doesn't hurt bare metal hardware or do any other problem besides taking a small amount of CPU cycles.
23 lines
599 B
C
23 lines
599 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 dbgputstr(char const*, size_t);
|
|
void kernelputstr(char const*, size_t);
|
|
void kernelcriticalputstr(char const*, size_t);
|
|
void dbgputchar(char);
|
|
void kernelearlyputstr(char const*, size_t);
|
|
int snprintf(char* buf, size_t, char const* fmt, ...) __attribute__((format(printf, 3, 4)));
|
|
void set_serial_debug_enabled(bool desired_state);
|
|
bool is_serial_debug_enabled();
|
|
}
|
|
|
|
void dbgputstr(StringView view);
|