Skip to content

Instantly share code, notes, and snippets.

View ao-kenji's full-sized avatar

Kenji Aoyama ao-kenji

View GitHub Profile
@ao-kenji
ao-kenji / xptc.diff
Last active October 28, 2016 13:48
Test code to use HD647180 XP as a timecounter on OpenBSD/luna88k, based on Izumi Tsutsui's "a dumb SSG player for OMRON LUNA's "XP" processor HD647180 and YM2149"
Index: luna88k/luna88k/clock.c
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/luna88k/clock.c,v
retrieving revision 1.11
diff -u -r1.11 clock.c
--- luna88k/luna88k/clock.c 4 Sep 2016 00:56:08 -0000 1.11
+++ luna88k/luna88k/clock.c 28 Oct 2016 13:42:51 -0000
@@ -78,6 +78,31 @@
}
(C) Copyright Omron Corporation 1989, 1990
ROM Version 1.10, 64 Megabytes RAM, 3 CPUs
Memory Check: 3Port passed, main skipped.
ROM Monitor
0>install
start install booting...
CPU0 is attached with MC88200 CMMU
CPU1 is attached with MC88200 CMMU
CPU2 is attached with MC88200 CMMU
ROOT device is the ramdisk system.
Mar 1 19:36
CPU0 is attached with MC88200 CMMU
CPU1 is attached with MC88200 CMMU
LUNA boot: memory from 0x15c000 to 0x7000000
Kernel virtual space from 0x00000000 to 0x1b940000.
OMRON LUNA-88K Mach 2.5 Vers 2.00 Thu Jan 21 16:47 1993 (GENERIC)
physical memory = 112.00 megabytes.
available memory = 96.53 megabytes.
using 1433 buffers containing 11.19 megabytes of memory
(C) Copyright Omron Corporation 1989, 1990, 1991, 1992
ROM Version 1.37, 112 Megabytes RAM, 2 CPUs
Memory Check: 3Port passed, main skipped.
Auto-booting...
Booting sd(0,0,0) vmunix
CPU0 is attached with MC88200 CMMU
CPU1 is attached with MC88200 CMMU
LUNA boot: memory from 0x15c000 to 0x7000000
Kernel virtual space from 0x00000000 to 0x1b940000.
OMRON LUNA-88K Mach 2.5 Vers 2.00 Thu Jan 21 16:47 1993 (GENERIC)
Thu Apr 20 21:40:33 JST 2017
===> Checking files for py-setuptools-28.6.1p0v0
`/w1/o/6.1/ports/distfiles/setuptools-28.6.1.tar.gz' is up to date.
>> (SHA256) setuptools-28.6.1.tar.gz: OK
===> py-setuptools-28.6.1p0v0 depends on: python->=2.7,<2.8 -> python-2.7.13p0
===> Extracting for py-setuptools-28.6.1p0v0
===> Patching for py-setuptools-28.6.1p0v0
===> Applying OpenBSD patch patch-setup_py
Hmm... Looks like a unified diff to me...
The text leading up to this was:
# gdb /usr/local/bin/python2.7 ./python2.7.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "m88k-unknown-openbsd6.1"...
(no debugging symbols found)
[ using 285888 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 6.1 (GENERIC.MP) #1: Mon Apr 10 07:34:49 JST 2017
[email protected]:/usr/src/sys/arch/luna88k/compile/GENERIC.MP
real mem = 67104768 (63MB)
avail mem = 61243392 (58MB)
mainbus0 at root: OMRON LUNA-88K, 25MHz
(C) Copyright Omron Corporation 1989, 1990
ROM Version 1.20, 64 Megabytes RAM, 3 CPUs
Memory Check: 3Port passed, main skipped.
ROM Monitor
0>install
start install booting...
CPU0 is attached with MC88200 CMMU
CPU1 is attached with MC88200 CMMU
CPU2 is attached with MC88200 CMMU
ROOT device is the ramdisk system.
(C) Copyright Omron Corporation 1989, 1990
ROM Version 1.20, 64 Megabytes RAM, 3 CPUs
Memory Check: 3Port passed, main skipped.
Auto-booting...
Booting sd(0,0,0) vmunix
CPU0 is attached with MC88200 CMMU
CPU1 is attached with MC88200 CMMU
CPU2 is attached with MC88200 CMMU
LUNA boot: memory from 0x15c000 to 0x4000000
Kernel virtual space from 0x00000000 to 0xf978000.
Index: luna88k/conf/GENERIC
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/conf/GENERIC,v
retrieving revision 1.22
diff -u -r1.22 GENERIC
--- luna88k/conf/GENERIC 17 Dec 2016 05:22:34 -0000 1.22
+++ luna88k/conf/GENERIC 12 May 2017 02:07:28 -0000
@@ -50,6 +50,9 @@
# HD647180X I/O processor
xp0 at mainbus0