soc/intel/xeon_sp: Move function debug macros
Move the macros for printing debug information to debug.h in the common console include directory and device include file. These are available if the platform selects DEFAULT_CONSOLE_LOGLEVEL_8. The macros could be used by any platform. Change-Id: Ie237bdf8cdc42c76f38a0c820fdc92e81095f47c Signed-off-by: Marc Jones <marcjones@sysproconsulting.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/46093 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jay Talbott <JayTalbott@sysproconsulting.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
5b5c52e8de
commit
8b522db474
9 changed files with 51 additions and 31 deletions
22
src/include/console/debug.h
Normal file
22
src/include/console/debug.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
|
||||
#ifndef _CONSOLE_DEBUG_H_
|
||||
#define _CONSOLE_DEBUG_H_
|
||||
|
||||
#if CONFIG(DEBUG_FUNC)
|
||||
#include <console/console.h>
|
||||
|
||||
#define FUNC_ENTER() \
|
||||
printk(BIOS_SPEW, "%s:%s:%d: ENTER\n", __FILE__, __func__, __LINE__)
|
||||
|
||||
#define FUNC_EXIT() \
|
||||
printk(BIOS_SPEW, "%s:%s:%d: EXIT\n", __FILE__, __func__, __LINE__)
|
||||
|
||||
#else /* FUNC_DEBUG */
|
||||
|
||||
#define FUNC_ENTER()
|
||||
#define FUNC_EXIT()
|
||||
|
||||
#endif /* FUNC_DEBUG */
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue