Skip to content

Instantly share code, notes, and snippets.

View pkgsrc-net-sayaka-3.5.0.diff
? net/sayaka/work.i386
Index: net/sayaka/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/sayaka/Makefile,v
retrieving revision 1.29
diff -u -p -d -r1.29 Makefile
--- net/sayaka/Makefile 10 Nov 2020 15:03:09 -0000 1.29
+++ net/sayaka/Makefile 5 Mar 2021 14:11:36 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.29 2020/11/10 15:03:09 tsutsui Exp $
@tsutsui
tsutsui / pkgsrc-inputmethod-mozc-server.diff
Created Feb 26, 2021
fix build errors of pkgsrc/inputmethod/mozc-server 2.26.4282.100 on NetBSD/i386 9.1
View pkgsrc-inputmethod-mozc-server.diff
Index: inputmethod/mozc-server/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/mozc-server/distinfo,v
retrieving revision 1.23
diff -u -p -r1.23 distinfo
--- inputmethod/mozc-server/distinfo 15 Feb 2021 14:50:23 -0000 1.23
+++ inputmethod/mozc-server/distinfo 25 Feb 2021 22:52:54 -0000
@@ -33,7 +33,7 @@ SHA1 (patch-gui_qt__moc.gypi) = e3d42e61
SHA1 (patch-gui_qt__rcc.gypi) = d38a849fe8e81672eb441a41936f454d8e45ff5c
SHA1 (patch-gui_qt__uic.gypi) = 7dd69ee109e81f0e70f2866b77555412518b4844
@tsutsui
tsutsui / m68k-setcontext-fix_20210220.diff
Created Feb 20, 2021
a dumb possible fix for NetBSD PR Port-m68k/55990 https://gnats.netbsd.org/55990
View m68k-setcontext-fix_20210220.diff
Index: m68k/reenter_syscall.s
===================================================================
RCS file: /cvsroot/src/sys/arch/m68k/m68k/reenter_syscall.s,v
retrieving revision 1.4
diff -u -p -d -r1.4 reenter_syscall.s
--- m68k/reenter_syscall.s 7 Sep 2013 19:06:29 -0000 1.4
+++ m68k/reenter_syscall.s 20 Feb 2021 01:38:49 -0000
@@ -6,6 +6,7 @@
*/
View dmesg-netbsd-sun3-cpu_setmcontext-debug.log
0220] cpu_setmcontext: stack (&sz) = 0xf7b84e8 restore frame (format=10, sz=24) ->return
cpu_setmcontext: stack (&sz) = 0xf7b84e8 restore frame (format=10, sz=24) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0xf7b84d0 restore frame (format=10, sz=24) ->return
cpu_setmcontext: stack (&sz) = 0xf7b84d0 restore frame (format=10, sz=24) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0xf7b84b8 restore frame (format=10, sz=24) ->return
cpu_setmcontext: stack (&sz) = 0xf7b84b8 restore frame (format=10, sz=24) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0xf7b84a0 restore frame (format=10, sz=24) ->return
cpu_setmcontext: stack (&sz) = 0xf7b84a0 restore frame (format=10, sz=24) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0xf7b8488 restore frame (format=10, sz=24) ->return
cpu_setmcontext: stack (&sz) = 0xf7b8488 restore frame (format=10, sz=24) ->reenter_syscall
View dmesg-netbsd-x68k-cpu_setmcontext-debug.log
4) ->return
cpu_setmcontext: stack (&sz) = 0x39c2bec restore frame (format=11, sz=84) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0x39c2b98 restore frame (format=11, sz=84) ->return
cpu_setmcontext: stack (&sz) = 0x39c2b98 restore frame (format=11, sz=84) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0x39c2b44 restore frame (format=11, sz=84) ->return
cpu_setmcontext: stack (&sz) = 0x39c2b44 restore frame (format=11, sz=84) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0x39c2af0 restore frame (format=11, sz=84) ->return
cpu_setmcontext: stack (&sz) = 0x39c2af0 restore frame (format=11, sz=84) ->reenter_syscall
cpu_setmcontext: stack (&sz) = 0x39c2a9c restore frame (format=11, sz=84) ->return
cpu_setmcontext: stack (&sz) = 0x39c2a9c restore frame (format=11, sz=84) ->reenter_syscall
View dmesg-netbsd-x68k-panic.log
0x3994de4
[ 3815.598314] cpu_setmcontext: stack (sz) = 0x3994d90
[ 3815.599864] cpu_setmcontext: stack (sz) = 0x3994d90
[ 3815.603114] cpu_setmcontext: stack (sz) = 0x3994d3c
[ 3816.389214] cpu_setmcontext: stack (sz) = 0x3994d90
[ 3816.394364] cpu_setmcontext: stack (sz) = 0x3994d3c
[ 3816.395914] cpu_setmcontext: stack (sz) = 0x3994d3c
[ 3816.399314] cpu_setmcontext: stack (sz) = 0x3994ce8
[ 3816.428014] cpu_setmcontext: stack (sz) = 0x3994d3c
[ 3816.437714] cpu_setmcontext: stack (sz) = 0x3994ce8
@tsutsui
tsutsui / kernel-stack-dump.log
Created Feb 9, 2021
memory dump of kernel stack on a panic caused by a kernel stack overflow NetBSD/x68k running X68k Xorg server
View kernel-stack-dump.log
Crash version 9.1, image version 9.1.
System panicked: Address error
$maxoff 100000 = 0
38dffb0: 00166c13 038dffc4 038e0090 00002c22 ..l...........,"
38dffc0: 00166c13 000a000d 00000004 04690000 ..l..........i..
38dffd0: 00000000 0475ee58 ffefe70c 038e01f0 .....u.X........
38dffe0: 038e0000 00772640 00163b80 00000000 .....w&@..;.....
38dfff0: 000180ea 000cf801 014f4240 00000000 .........OB@....
38e0000: 00002010 00001009 ffefd934 00000104 .. ........4....
38e0010: 00166c13 038dffc4 ffffffff 0000a64d ..l............M
@tsutsui
tsutsui / mouse.c.diff
Created Feb 7, 2021
pseudo diff for xf86-input-mouse to refactor Emulate3Buttons finate-state machine definitions
View mouse.c.diff
diff --git a/mouse.c b/mouse.c
index ae219ce..02f70ff 100644
--- a/mouse.c
+++ b/mouse.c
@@ -76,7 +76,22 @@ static void MouseDoPostEvent(DeviceIntPtr device, int buttons, int dx, int dy);
* 8 repressed left - left pressed after released left
* 9 repressed right - right pressed after released right
* 10 pressed both - both pressed, not emulating middle
- *
+ */
@tsutsui
tsutsui / netbsd-x68k-Emulate3buttons-src-HEAD_20210205.diff
Last active Feb 5, 2021
WIP "Emulate3Buttons" for 2 button mice on NetBSD/x68k Xorg 1.20 based X68k Xserver
View netbsd-x68k-Emulate3buttons-src-HEAD_20210205.diff
Index: sys/arch/x68k/dev/ms.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x68k/dev/ms.c,v
retrieving revision 1.34
diff -u -p -d -r1.34 ms.c
--- sys/arch/x68k/dev/ms.c 25 Jul 2014 08:10:35 -0000 1.34
+++ sys/arch/x68k/dev/ms.c 5 Feb 2021 11:40:09 -0000
@@ -356,8 +356,8 @@ ms_input(struct ms_softc *ms, int c)
{
struct firm_event *fe;
@tsutsui
tsutsui / netbsd-x68k-Emulate3buttons-src-HEAD-20210131-1.diff
Created Jan 31, 2021
WIP Emulate 3 button mouse for NetBSD/x68k X68k Xorg 1.20 based server (gets SIGSEGV)
View netbsd-x68k-Emulate3buttons-src-HEAD-20210131-1.diff
Index: external/mit/xorg/server/xorg-server/hw/netbsd/x68k/Makefile
===================================================================
RCS file: /cvsroot/src/external/mit/xorg/server/xorg-server/hw/netbsd/x68k/Makefile,v
retrieving revision 1.9
diff -u -p -d -r1.9 Makefile
--- external/mit/xorg/server/xorg-server/hw/netbsd/x68k/Makefile 5 Aug 2020 15:48:09 -0000 1.9
+++ external/mit/xorg/server/xorg-server/hw/netbsd/x68k/Makefile 31 Jan 2021 07:02:17 -0000
@@ -18,6 +18,7 @@ WARNS?= 2
.PATH: ${X11SRCDIR.xorg-server}/hw/netbsd/x68k
SRCS= x68kInit.c x68kConfig.c x68kIo.c x68kMouse.c x68kKbd.c x68kKeyMap.c \