2011-09-02 23:23:41 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the coreboot project.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Rudolf Marek <r.marek@assembler.cz>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <types.h>
|
|
|
|
#include <console/console.h>
|
|
|
|
#include <trace.h>
|
|
|
|
|
|
|
|
int volatile trace_dis = 0;
|
|
|
|
|
2016-08-01 21:20:40 +02:00
|
|
|
void __cyg_profile_func_enter(void *func, void *callsite)
|
2011-09-02 23:23:41 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
if (trace_dis)
|
|
|
|
return;
|
|
|
|
|
|
|
|
DISABLE_TRACE
|
2016-03-08 20:17:44 +01:00
|
|
|
printk(BIOS_INFO, "~0x%p(0x%p)\n", func, callsite);
|
2011-09-02 23:23:41 +02:00
|
|
|
ENABLE_TRACE
|
|
|
|
}
|
|
|
|
|
2016-08-01 21:20:40 +02:00
|
|
|
void __cyg_profile_func_exit(void *func, void *callsite)
|
2011-09-02 23:23:41 +02:00
|
|
|
{
|
|
|
|
}
|