summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-01-10 20:12:17 +0000
committerimp <imp@FreeBSD.org>2010-01-10 20:12:17 +0000
commit9710bc47c68190200553fd410ede67b290e072c6 (patch)
tree56ec477b84bc9db693bd9e4af3bbd9a80ce969db /sys/mips
parent9c612b36b97d6283920ac47b677cd46180ac8608 (diff)
parent3fab56430208c0711cce70ba7e778c745bd5f16d (diff)
downloadFreeBSD-src-9710bc47c68190200553fd410ede67b290e072c6.zip
FreeBSD-src-9710bc47c68190200553fd410ede67b290e072c6.tar.gz
Merge from projects/mips to head by hand:
Copy over inckern.S for crunched kernel support.
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/inckern.S34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/mips/mips/inckern.S b/sys/mips/mips/inckern.S
new file mode 100644
index 0000000..8610196
--- /dev/null
+++ b/sys/mips/mips/inckern.S
@@ -0,0 +1,34 @@
+/*-
+ * Copyright (c) 2005 Olivier Houchard. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "opt_kernname.h"
+
+#include <machine/asm.h>
+__FBSDID("$FreeBSD$")
+.section ".real_kernel","aw"
+.globl kernel_start;
+kernel_start:
+.incbin KERNNAME
+.globl kernel_end;
+kernel_end:
OpenPOWER on IntegriCloud