mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix some more warnings
git-svn-id: svn://coreboot.org/openbios/openbios-devel@275 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -127,17 +127,19 @@ enum machine_type {
|
||||
#define SEGMENT_SIZE PAGE_SIZE
|
||||
#endif
|
||||
|
||||
#if !defined(SEGMENT_SIZE)
|
||||
#ifdef linux
|
||||
#if defined(__i386__) || defined(__mc68000__)
|
||||
#define SEGMENT_SIZE 1024
|
||||
#elif defined(__sparc__)
|
||||
#define SEGMENT_SIZE 4096
|
||||
#define SEGMENT_SIZE 0x2000
|
||||
#else
|
||||
#ifndef SEGMENT_SIZE
|
||||
#if defined(PAGE_SIZE)
|
||||
#define SEGMENT_SIZE PAGE_SIZE
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define _N_SEGMENT_ROUND(x) (((x) + SEGMENT_SIZE - 1) & ~(SEGMENT_SIZE - 1))
|
||||
|
||||
|
||||
@@ -37,11 +37,14 @@ extern void encode_file( const char *str );
|
||||
extern int get_inputbyte( void );
|
||||
#endif
|
||||
|
||||
#ifndef BOOTSTRAP
|
||||
#undef putchar
|
||||
#undef getchar
|
||||
|
||||
extern int putchar( int ch );
|
||||
extern int availchar( void );
|
||||
extern int getchar( void );
|
||||
#endif
|
||||
|
||||
extern int availchar( void );
|
||||
|
||||
#endif /* _H_KERNEL */
|
||||
|
||||
@@ -80,7 +80,7 @@ static const char *wordnames[] = {
|
||||
"$include", "$encode-file"
|
||||
};
|
||||
|
||||
void init_trampoline(void)
|
||||
static void init_trampoline(void)
|
||||
{
|
||||
if (!trampoline) {
|
||||
/* We're using side effects which is to some extent nasty */
|
||||
|
||||
Reference in New Issue
Block a user