Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Make librump play with mips nicely...



details:   https://anonhg.NetBSD.org/src/rev/0ef0edc4a2ed
branches:  trunk
changeset: 750051:0ef0edc4a2ed
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Dec 14 21:19:23 2009 +0000

description:
Make librump play with mips nicely.  Define ARCH_ELFSIZE for mips to be 32.
This works for N64 kernels because objcopy them to be 32bit to the bootloaders
can handle them.

diffstat:

 sys/rump/librump/rumpkern/Makefile.rumpkern      |  4 +++-
 sys/rump/librump/rumpkern/arch/mips/Makefile.inc |  5 +++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 807cf8d487b8 -r 0ef0edc4a2ed sys/rump/librump/rumpkern/Makefile.rumpkern
--- a/sys/rump/librump/rumpkern/Makefile.rumpkern       Mon Dec 14 21:01:07 2009 +0000
+++ b/sys/rump/librump/rumpkern/Makefile.rumpkern       Mon Dec 14 21:19:23 2009 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.rumpkern,v 1.67 2009/12/13 08:25:20 mrg Exp $
+#      $NetBSD: Makefile.rumpkern,v 1.68 2009/12/14 21:19:23 matt Exp $
 #
 
 .include "${RUMPTOP}/Makefile.rump"
@@ -90,6 +90,8 @@
 .ifdef MLIBDIR
 ARCHDIR=       ${RUMPTOP}/librump/rumpkern/arch/${MLIBDIR}
 LIBKERN_ARCH=  ${MLIBDIR}
+.elif exists(${RUMPTOP}/librump/rumpkern/arch/${MACHINE_CPU})
+ARCHDIR=       ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_CPU}
 .else
 ARCHDIR=       ${RUMPTOP}/librump/rumpkern/arch/${MACHINE_ARCH}
 .endif
diff -r 807cf8d487b8 -r 0ef0edc4a2ed sys/rump/librump/rumpkern/arch/mips/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/rump/librump/rumpkern/arch/mips/Makefile.inc  Mon Dec 14 21:19:23 2009 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: Makefile.inc,v 1.1 2009/12/14 21:19:23 matt Exp $
+
+CPPFLAGS+=     -DARCH_ELFSIZE=32
+SRCS+=         kobj_stubs.c rumpcpu_generic.c
+



Home | Main Index | Thread Index | Old Index