mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 22:14:37 +00:00
20 lines
477 B
C++
20 lines
477 B
C++
#include <types.h>
|
|
#include <printf.h>
|
|
#include <uart.hpp>
|
|
|
|
#include "../kernel.h"
|
|
|
|
using namespace UniversalAsynchronousReceiverTransmitter;
|
|
|
|
static inline SafeFunction __no_instrument_function void gprof_uart_wrapper(char c, void *unused)
|
|
{
|
|
UART(COM2).Write(c);
|
|
(void)unused;
|
|
}
|
|
|
|
EXTERNC SafeFunction __no_instrument_function void mcount(unsigned long frompc, unsigned long selfpc)
|
|
{
|
|
// TODO: Implement
|
|
/* https://docs.kernel.org/trace/ftrace-design.html */
|
|
}
|