Index: sys/conf/Makefile.mips =================================================================== --- sys/conf/Makefile.mips (revision 255042) +++ sys/conf/Makefile.mips (working copy) @@ -44,7 +44,7 @@ # We default to the MIPS32 ISA, if none specified in the # kernel configuration file. ARCH_FLAGS?=-march=mips32 -EXTRA_FLAGS=-fno-pic -mno-abicalls -G0 -DKERNLOADADDR=${KERNLOADADDR} +EXTRA_FLAGS+=-fno-pic -mno-abicalls -G0 -DKERNLOADADDR=${KERNLOADADDR} HACK_EXTRA_FLAGS=-shared Index: sys/conf/files.mips =================================================================== --- sys/conf/files.mips (revision 255042) +++ sys/conf/files.mips (working copy) @@ -57,6 +57,9 @@ libkern/flsl.c standard libkern/memmove.c standard libkern/ucmpdi2.c optional mips | mipsel +libkern/ashldi3.c optional mips_small_hack +libkern/ashrdi3.c optional mips_small_hack +libkern/lshrdi3.c optional mips_small_hack # cfe support dev/cfe/cfe_api.c optional cfe Index: sys/conf/options.mips =================================================================== --- sys/conf/options.mips (revision 255042) +++ sys/conf/options.mips (working copy) @@ -46,6 +46,8 @@ MIPS64EL MIPSN32 +MIPS_SMALL_HACK + COMPAT_FREEBSD32 opt_compat.h YAMON opt_global.h Index: sys/kern/kern_linker.c =================================================================== --- sys/kern/kern_linker.c (revision 255042) +++ sys/kern/kern_linker.c (working copy) @@ -1067,8 +1067,8 @@ { linker_file_t lf; char *filename = NULL; - caddr_t address; - size_t size; + caddr_t address = 0; + size_t size = 0; int error = 0; if ((error = securelevel_gt(td->td_ucred, 0)) != 0) Index: sys/kern/sys_process.c =================================================================== --- sys/kern/sys_process.c (revision 255042) +++ sys/kern/sys_process.c (working copy) @@ -334,7 +334,7 @@ struct vmspace *vm; struct vnode *vp; char *freepath, *fullpath; - u_int pathlen; + u_int pathlen = 0; int error, index; error = 0; Index: sys/kern/vfs_vnops.c =================================================================== --- sys/kern/vfs_vnops.c (revision 255042) +++ sys/kern/vfs_vnops.c (working copy) @@ -1966,7 +1966,7 @@ struct vattr va; daddr_t bn, bnp; uint64_t bsize; - off_t noff; + off_t noff = 0; int error; KASSERT(cmd == FIOSEEKHOLE || cmd == FIOSEEKDATA, Index: sys/mips/conf/DB120 =================================================================== --- sys/mips/conf/DB120 (revision 255042) +++ sys/mips/conf/DB120 (working copy) @@ -15,6 +15,14 @@ # Force the board memory - the base DB120 has 128MB RAM options AR71XX_REALMEM=(32*1024*1024) +# Save some space +makeoptions INLINE_LIMIT=0 +makeoptions EXTRA_FLAGS="-fno-inline -Wno-inline -Os -Wno-strict-aliasing" +options MUTEX_NOINLINE +options RWLOCK_NOINLINE +options SX_NOINLINE +options MIPS_SMALL_HACK + # i2c GPIO bus #device gpioiic #device iicbb