X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=arch%2Fsparc%2Fkernel%2Fsetup_32.c;h=baef495c06bdb081c0744a33f0e9564bd125a1eb;hb=a67f02c98e2471176eaf8a02f85e3b706ab9c5f2;hp=1434526970a6bf446a495d275eab9f46073a4172;hpb=75fcf64dc7180a6258dbefd671edb9d86a38d22f;p=cascardo%2Flinux.git diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index 1434526970a6..baef495c06bd 100644 --- a/arch/sparc/kernel/setup_32.c +++ b/arch/sparc/kernel/setup_32.c @@ -267,7 +267,7 @@ static __init void leon_patch(void) } struct tt_entry *sparc_ttable; -struct pt_regs fake_swapper_regs; +static struct pt_regs fake_swapper_regs; /* Called from head_32.S - before we have setup anything * in the kernel. Be very careful with what you do here. @@ -365,7 +365,7 @@ void __init setup_arch(char **cmdline_p) prom_setsync(prom_sync_me); - if((boot_flags&BOOTME_DEBUG) && (linux_dbvec!=0) && + if((boot_flags & BOOTME_DEBUG) && (linux_dbvec != NULL) && ((*(short *)linux_dbvec) != -1)) { printk("Booted under KADB. Syncing trap table.\n"); (*(linux_dbvec->teach_debugger))();