console: Hide global console_loglevel
Change-Id: I7bdc468bc3f74516abb2c583bdb5b6d7555d987c Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/5333 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
committed by
Patrick Georgi
parent
b2d2596714
commit
56ae13983b
@ -40,18 +40,10 @@ struct console_driver {
|
||||
/* Defined by the linker... */
|
||||
extern struct console_driver console_drivers[];
|
||||
extern struct console_driver econsole_drivers[];
|
||||
|
||||
extern int console_loglevel;
|
||||
#else
|
||||
/* __PRE_RAM__ */
|
||||
/* Using a global variable can cause problems when we reset the stack
|
||||
* from cache as ram to ram. If we make this a define USE_SHARED_STACK
|
||||
* we could use the same code on all architectures.
|
||||
*/
|
||||
#define console_loglevel CONFIG_DEFAULT_CONSOLE_LOGLEVEL
|
||||
#endif
|
||||
|
||||
#ifndef __ROMCC__
|
||||
int console_log_level(int msg_level);
|
||||
void console_init(void);
|
||||
void console_hw_init(void);
|
||||
void console_tx_byte(unsigned char byte);
|
||||
|
Reference in New Issue
Block a user