Add few missing prototypes, and remove few unused (thus lonelly) variables.
TODO - x86emu need (imo) some common header with prototypes at least - clog2, ulzma, hardwaremain prototypes added by this patch probably should be moved to some header too. - in src/devices/device_util.c prototype is before function because seems, it is used only within same file, if not it should be moved to debug section of prototypes in include/device/device.h Signed-off-by: Maciej Pijanka <maciej.pijanka@gmail.com> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4871 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Myles Watson
parent
18d7c2e31e
commit
ea92185755
@@ -33,6 +33,7 @@ struct gdtarg {
|
||||
} __attribute__((packed));
|
||||
|
||||
// Copy GDT to new location and reload it
|
||||
void move_gdt(void);
|
||||
void move_gdt(void)
|
||||
{
|
||||
void *newgdt;
|
||||
|
@@ -34,8 +34,6 @@
|
||||
uint64_t high_tables_base = 0;
|
||||
uint64_t high_tables_size;
|
||||
|
||||
void cbmem_list(void);
|
||||
|
||||
void move_gdt(void);
|
||||
void cbmem_arch_init(void)
|
||||
{
|
||||
|
@@ -35,6 +35,9 @@
|
||||
*/
|
||||
#define div_long_long_rem(a,b,c) div_ll_X_l_rem(a,b,c)
|
||||
|
||||
extern inline long
|
||||
div_ll_X_l_rem(long long divs, long div, long *rem);
|
||||
|
||||
extern inline long
|
||||
div_ll_X_l_rem(long long divs, long div, long *rem)
|
||||
{
|
||||
|
@@ -361,6 +361,8 @@ static void put_packet(char *buffer)
|
||||
|
||||
#include <arch/registers.h>
|
||||
|
||||
void x86_exception(struct eregs *info);
|
||||
|
||||
void x86_exception(struct eregs *info)
|
||||
{
|
||||
#if CONFIG_GDB_STUB == 1
|
||||
|
@@ -32,6 +32,9 @@ int console_loglevel = CONFIG_DEFAULT_CONSOLE_LOGLEVEL;
|
||||
#define console_loglevel CONFIG_DEFAULT_CONSOLE_LOGLEVEL
|
||||
#endif
|
||||
|
||||
void console_tx_byte(unsigned char byte);
|
||||
int do_printk(int msg_level, const char *fmt, ...);
|
||||
|
||||
void console_tx_byte(unsigned char byte)
|
||||
{
|
||||
if (byte == '\n')
|
||||
|
Reference in New Issue
Block a user