Source-Changes-HG archive

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

[src/thorpej_scsipi]: src/sys/arch/hpcsh the kernel for SH3-based WinCE machi...



details:   https://anonhg.NetBSD.org/src/rev/d9cf03114275
branches:  thorpej_scsipi
changeset: 477366:d9cf03114275
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jan 17 05:21:49 2001 +0000

description:
the kernel for SH3-based WinCE machines (little endian), by uch.
MACHINE=hpcsh, MACHINE_CPU=sh3el.

bootloader: ftp://f77.nop.or.jp/users/uch/hpcboot/
original patch: ftp://f77.nop.or.jp/users/uch/hpcsh/

sys/sh3/sh3/md_root.c: add #ifdef MEMORY_DISK_DYNAMIC

diffstat:

 sys/arch/hpcsh/Makefile                 |  30 ++++++++++++++++++++++++++++++
 sys/arch/hpcsh/conf/Makefile.hpcsh.inc  |   3 +++
 sys/arch/hpcsh/hpcsh/procfs_machdep.c   |  20 ++++++++++++++++++++
 sys/arch/hpcsh/include/endian.h         |   3 +++
 sys/arch/hpcsh/include/endian_machdep.h |   4 ++++
 sys/arch/hpcsh/include/int_types.h      |   3 +++
 sys/arch/hpcsh/include/lock.h           |   4 ++++
 sys/arch/hpcsh/include/math.h           |   3 +++
 8 files changed, 70 insertions(+), 0 deletions(-)

diffs (102 lines):

diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/Makefile   Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,30 @@
+#      $NetBSD: Makefile,v 1.1.2.2 2001/01/17 05:21:49 itojun Exp $
+
+# Makefile for hpcsh tags file and boot blocks
+
+#.include "../sh3/Makefile.inc"
+
+TEVBSH3=       ../hpcsh/tags
+SEVBSH3=       ../hpcsh/hpcsh/*.[ch] ../hpcsh/include/*.h
+AEVBSH3=       ../hpcsh/hpcsh/*.[sS]
+
+# Directories in which to place tags links
+DEVBSH3=       hpcsh include
+
+.include "../../kern/Make.tags.inc"
+
+tags:
+       -ctags -wdtf ${TEVBSH3} ${SEVBSH3} ${COMM}
+       egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBSH3} | \
+           sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+               >> ${TEVBSH3}
+       sort -o ${TEVBSH3} ${TEVBSH3}
+
+links:
+       -for i in ${DEVBSH3}; do \
+           (cd $$i && rm -f tags; ln -s ../tags tags); done
+
+
+SUBDIR=        include # stand
+
+.include <bsd.subdir.mk>
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/conf/Makefile.hpcsh.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/conf/Makefile.hpcsh.inc    Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,3 @@
+#      $NetBSD: Makefile.hpcsh.inc,v 1.1.2.2 2001/01/17 05:21:49 itojun Exp $
+
+MACHINE=hpcsh
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/hpcsh/procfs_machdep.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/hpcsh/procfs_machdep.c     Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,20 @@
+/*     $NetBSD: procfs_machdep.c,v 1.1.2.2 2001/01/17 05:21:50 itojun Exp $    */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+#include <sys/mount.h>
+#include <sys/vnode.h>
+#include <miscfs/procfs/procfs.h>
+
+
+/*
+ * Linux-style /proc/cpuinfo.
+ * Only used when procfs is mounted with -o linux.
+ */
+int
+procfs_getcpuinfstr(char *buf, int *len)
+{
+       *len = 0;
+
+       return 0;
+}
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/include/endian.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/include/endian.h   Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: endian.h,v 1.1.2.2 2001/01/17 05:21:52 itojun Exp $    */
+
+#include <sys/endian.h>
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/include/endian_machdep.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/include/endian_machdep.h   Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,4 @@
+/*     $NetBSD: endian_machdep.h,v 1.1.2.2 2001/01/17 05:21:52 itojun Exp $    */
+
+#define _BYTE_ORDER _LITTLE_ENDIAN
+#include <sh3/endian_machdep.h>
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/include/int_types.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/include/int_types.h        Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: int_types.h,v 1.1.2.2 2001/01/17 05:21:53 itojun Exp $ */
+
+#include <sh3/int_types.h>
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/include/lock.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/include/lock.h     Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,4 @@
+/*     $NetBSD: lock.h,v 1.1.2.2 2001/01/17 05:21:53 itojun Exp $      */
+
+/* Just use the common sh3 definition */
+#include <sh3/lock.h>
diff -r 7a2d5ecc60d5 -r d9cf03114275 sys/arch/hpcsh/include/math.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcsh/include/math.h     Wed Jan 17 05:21:49 2001 +0000
@@ -0,0 +1,3 @@
+/*     $NetBSD: math.h,v 1.1.2.2 2001/01/17 05:21:53 itojun Exp $      */
+
+#include <sh3/math.h>



Home | Main Index | Thread Index | Old Index