mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix Unix target warnings from Sparse
Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@535 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -52,13 +52,12 @@ void boot(void);
|
||||
|
||||
/* local variables */
|
||||
|
||||
ucell *latest, *state;
|
||||
ucell *memory;
|
||||
static ucell *memory;
|
||||
|
||||
int diskemu;
|
||||
static int diskemu;
|
||||
|
||||
static int segfault = 0;
|
||||
int verbose = 0;
|
||||
static int verbose = 0;
|
||||
|
||||
#ifdef CONFIG_PPC
|
||||
uint32_t isa_io_base;
|
||||
@@ -477,7 +476,7 @@ int main(int argc, char *argv[])
|
||||
sa.sa_sigaction = segv_handler;
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_flags = SA_SIGINFO | SA_NODEFER;
|
||||
sigaction(SIGSEGV, &sa, 0);
|
||||
sigaction(SIGSEGV, &sa, NULL);
|
||||
|
||||
if (verbose)
|
||||
printk("done.\n");
|
||||
@@ -492,7 +491,7 @@ int main(int argc, char *argv[])
|
||||
sa.sa_sigaction = int_handler;
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_flags = SA_SIGINFO | SA_NODEFER;
|
||||
sigaction(SIGINT, &sa, 0);
|
||||
sigaction(SIGINT, &sa, NULL);
|
||||
|
||||
if (verbose)
|
||||
printk("done.\n");
|
||||
|
||||
@@ -27,7 +27,7 @@ DItype __ashrdi3 (DItype u, word_type b);
|
||||
// Must be implemented outside:
|
||||
void __divide_error(void);
|
||||
|
||||
#ifdef __arch64__
|
||||
#if defined(__arch64__) || defined(__LP64__)
|
||||
typedef int TItype __attribute__ ((mode (TI)));
|
||||
|
||||
__uint128_t __udivmodti4(__uint128_t num, __uint128_t den, __uint128_t *rem);
|
||||
|
||||
Reference in New Issue
Block a user