Skip to content

Instantly share code, notes, and snippets.

View ao-kenji's full-sized avatar

Kenji Aoyama ao-kenji

View GitHub Profile
Index: omrasops.c
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/dev/omrasops.c,v
retrieving revision 1.11
diff -u -r1.11 omrasops.c
--- omrasops.c 2 Jan 2014 15:30:34 -0000 1.11
+++ omrasops.c 28 Sep 2014 12:50:12 -0000
@@ -159,6 +159,8 @@
u_int8_t *p;
int scanspan, startx, height, width, align, y;
@ao-kenji
ao-kenji / sayaka-openbsd-20141005.diff
Last active August 29, 2015 14:07
[Merged into original tree] Small patch for sayaka (https://github.com/isaki68k/sayaka/) on OpenBSD; find(1) in OpenBSD does not have -delete option.
diff --git a/sayaka.php b/sayaka.php
index 4029859..d414dd4 100644
--- a/sayaka.php
+++ b/sayaka.php
@@ -697,10 +697,10 @@ function invalidate_cache()
global $cachedir;
// アイコンは7日分くらいか
- system("find {$cachedir} -atime +7 -delete");
+ system("find {$cachedir} -atime +7 -exec rm {} +");
@ao-kenji
ao-kenji / luna88k-slave-clock-ipi-141030.diff
Created October 31, 2014 13:06
A test for using IPI as clock interrupts on slave processors.... No visible change.
Index: include/board.h
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/include/board.h,v
retrieving revision 1.12
diff -u -r1.12 board.h
--- include/board.h 6 Jan 2014 21:28:53 -0000 1.12
+++ include/board.h 30 Oct 2014 13:48:48 -0000
@@ -113,7 +113,11 @@
#define INT_SET_LV2 U(0xF4000000) /* enable level 7-3 */
#define INT_SET_LV1 U(0xFC000000) /* enable level 7-2 */
--- nut-2.7.2/drivers/blazer_usb.c.orig Fri Feb 28 06:17:32 2014
+++ nut-2.7.2/drivers/blazer_usb.c Sun Nov 2 20:09:29 2014
@@ -185,7 +185,7 @@
/* Write data in 8-byte chunks */
ret = usb_control_msg(udev, USB_ENDPOINT_OUT + USB_TYPE_CLASS + USB_RECIP_INTERFACE,
- 0x09, 0x2, 0, &tmp[i], 8, 1000);
+ 0x09, 0x200, 0, &tmp[i], 8, 1000);
if (ret <= 0) {
@ao-kenji
ao-kenji / luna88k-clock-intr-141109-1.diff
Created November 9, 2014 00:38
Another try, but it panic's while building kernel with 'make -j 4' ...
Index: include/board.h
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/include/board.h,v
retrieving revision 1.12
diff -u -r1.12 board.h
--- include/board.h 6 Jan 2014 21:28:53 -0000 1.12
+++ include/board.h 9 Nov 2014 00:37:35 -0000
@@ -105,15 +105,24 @@
#define INT_ST_MASK2 U(0x65000008) /* interrupt status register CPU 2 */
#define INT_ST_MASK3 U(0x6500000C) /* interrupt status register CPU 3 */
@ao-kenji
ao-kenji / luna88k-clock-intr-141109-2.diff
Created November 9, 2014 12:16
Nov 15 02:28:02 rhea ntpd[20606]: adjusting local clock by 26.095063s
Index: include/board.h
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/include/board.h,v
retrieving revision 1.12
diff -u -r1.12 board.h
--- include/board.h 6 Jan 2014 21:28:53 -0000 1.12
+++ include/board.h 9 Nov 2014 12:14:57 -0000
@@ -105,8 +105,13 @@
#define INT_ST_MASK2 U(0x65000008) /* interrupt status register CPU 2 */
#define INT_ST_MASK3 U(0x6500000C) /* interrupt status register CPU 3 */
@ao-kenji
ao-kenji / luna88k-necsb-20141227-1.diff
Created December 26, 2014 15:18
[Merged into the original tree] NEC PC-9801-86 sound board support on OpenBSD/luna88k.
Index: cbus.c
===================================================================
RCS file: /cvs/src/sys/arch/luna88k/cbus/cbus.c,v
retrieving revision 1.1
diff -u -r1.1 cbus.c
--- cbus.c 19 Dec 2014 13:17:35 -0000 1.1
+++ cbus.c 26 Dec 2014 15:08:44 -0000
@@ -1,4 +1,4 @@
-/* $OpenBSD: cbus.c,v 1.1 2014/12/19 13:17:35 aoyama Exp $ */
+/* $OpenBSD: cbus.c,v 1.1 2014/12/08 13:24:04 aoyama Exp $ */
Index: sys/dev/pci/pciide.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/pciide.c,v
retrieving revision 1.351
diff -u -r1.351 pciide.c
--- sys/dev/pci/pciide.c 9 Jan 2015 07:29:45 -0000 1.351
+++ sys/dev/pci/pciide.c 3 Mar 2015 13:53:53 -0000
@@ -1537,7 +1537,7 @@
sc->sc_dmactl_write = pciide_dmactl_write;
sc->sc_dmatbl_write = pciide_dmatbl_write;
(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,16,0) boot
OpenBSD/luna88k (LUNA-88K2) boot 0.4
Press return to boot now, any other key for boot menu
booting sd(16,0)bsd - starting in 0 seconds.
wdc0 at pcmcia0 function 0 "KME, KXLC005, 00" port 0x190/8,0x396/2: INT0 (irq 3)
cbus_isrdispatch: stray INT0, IPL=3
(wdc0:0:0): timeout
type: ata
c_bcount: 512
c_skip: 0
cbus_isrdispatch: stray INT0, IPL=3
atapiscsi0 at wdc0 channel 0 drive 0
scsibus4 at atapiscsi0: 2 targets
wdc_atapi_start: not ready, st = 58